Using Python Packages
Explore how to import Python packages and their submodules, including methods to alias package names for convenience. Understand how to import specific functions from packages and apply these techniques using popular libraries such as NumPy and Matplotlib to enhance your scientific computing workflow.
We'll cover the following...
We'll cover the following...
Importing packages #
Python allows developers to group related functions into hierarchical namespaces like packages, modules, etc.
When we want to use a module, class, or function from a package, we need to import it. There are many different ways to import packages. The most basic syntax is:
import numpy
after which any relevant module, class or function in that package inside numpy ...