July 2019
Beginner to intermediate
740 pages
16h 52m
English
A module is a single file of Python code that can be imported; window_calc.py from Chapter 4, Aggregating Pandas DataFrames, and color_utils.py from Chapter 6, Plotting with Seaborn and Customization Techniques, were both modules. A package is a collection of modules organized into directories. Packages can also be imported, but when we import a package, we have access to certain modules inside, so we don't have to import each one individually. This also allows us to build modules that import from each other without the need to maintain a single very large module.
So, how do we turn our modules into a package? We follow these steps:
Read now
Unlock full access