AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Fews python library1/11/2023 ![]() ![]() įor convenience, Python comes with a program called pip (a recursive acronym meaning "pip installs packages"), which will automatically fetch packages released and listed on PyPI (if you use Python version 2, pip must be installed separately).įor example, if you'd like to install the supersmoother package that I wrote, all that is required is to type the following at the command line: $ pip install supersmoother The standard registry for such modules is the Python Package Index ( PyPI for short), found on the Web at. These can be imported just as the built-in modules, but first the modules must be installed on your system. One of the things that makes Python useful, especially within the world of data science, is its ecosystem of third-party modules. You can find information on these, and many more, in the Python standard library documentation. urllib: Tools for doing HTTP and other web requests.json and csv: Tools for reading JSON-formatted and CSV-formatted files.pickle: Tools for object persistence: saving objects to and loading objects from disk.random: Tools for generating pseudorandom numbers.functools: Tools that assist with functional programming.itertools: Tools for constructing and interacting with iterators and generators.math and cmath: Mathematical functions and operations on real and complex numbers.os and sys: Tools for interfacing with the operating system, including navigating file directory structures and executing shell commands.Here is an extremely incomplete list of some of the modules you might wish to explore and learn about: Python's standard library contains many useful built-in modules, which you can read about fully in Python's documentation.Īny of these can be imported with the import statement, and then explored using the help function seen in the previous section. Importing from Python's Standard Library ¶ ![]()
0 Comments
Read More
Leave a Reply. |