Python
Last updated
Last updated
Get list of dictionary keys sorted by their values ():
Check of datetime object is localized ():
#video - "How to use (and where to apply) Python's unittest.mock.patch in your test suites. In this video I show where to patch, and three ways of applying mock.patch: as a decorator, as a context manager, and inline using mock.patch.start() and mock.patch.stop()."
#article - " 'Object references are passed by value.' When I first read this smug and overly-pithy definition, I wanted to punch something."
#software - IDE. The community edition is free to use, .
#article - "In this article, you'll learn about Python file operations. More specifically, opening a file, reading from it, writing into it, closing it and various file methods you should be aware of."
- "I need to use Python’s strftime
rarely enough that I can’t remember it off the top of my head and never bookmark it but often enough to be annoyed with having to Google “python strftime” and then find the table above in the Python documentation. So I decided to put this reference page up."
#software - "SnakeViz is a browser based graphical viewer for the output of Python’s module and an alternative to using the standard library . It was originally inspired by . SnakeViz works on Python 2.7 and Python 3. SnakeViz itself is still likely to work on Python 2.6, but official support has been dropped now that no longer supports Python 2.6."
#article - "Python’s import system is powerful, but also quite complicated. Until the release of Python 3.3, there was no comprehensive explanation of the expected import semantics, and even following the release of 3.3, the details of how sys.path
is initialised are still somewhat challenging to figure out."
by Juan Nunez-Iglesias, Stefan van der Walt & Harriet Dashnow
by Miguel Grinberg
by Kenneth Reitz & Tanya Schlusser
by Steven Bird, Ewan Klein, Edward Loper - "This book offers a highly accessible introduction to natural language processing, the field that supports a variety of language technologies, from predictive text and email filtering to automatic summarization and translation. With it, you'll learn how to write Python programs that work with large collections of unstructured text. You'll access richly annotated datasets using a comprehensive range of linguistic data structures, and you'll understand the main algorithms for analyzing the content and structure of written communication."
by Jake VanderPlas
by Harry J.W. Percival
by Allen B. Downey
by Allen B. Downey
by Matthew Kirk
#article - "Drawing a trendline of a scatter plot in matplotlib is very easy thanks to numpy’s polyfit function."
#article - Wikipedia. "This is a list of time zones from release 2017c of the ."
- "pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher. It also solves the issue of ambiguous times at the end of daylight saving time, which you can read more about in the Python Library Reference (datetime.tzinfo
)."
#article - Docs. "pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher. It also solves the issue of ambiguous times at the end of daylight saving time, which you can read more about in the Python Library Reference (datetime.tzinfo)."
- IANA. "The Time Zone Database (often called tz or zoneinfo) contains code and data that represent the history of local time for many representative locations around the globe. It is updated periodically to reflect changes made by political bodies to time zone boundaries, UTC offsets, and daylight-saving rules. Its management procedure is documented in ."
#article - Wikipedia. "The tz database is a collaborative compilation of information about the world's , primarily intended for use with computer programs and operating systems. Paul Eggert is its current editor and maintainer, with the organizational backing of . The tz database is also known as tzdata, the zoneinfo database or IANA time zone database, and occasionally as the Olson database, referring to the founding contributor, Arthur David Olson."