Loading...

Module

A single Python file (or package) loaded with import to reuse code.

When to use: Anywhere code reuse spans files; debugging ModuleNotFoundError.

Example: import numpy as np creates a local alias. from .utils import load_data is a relative import.

More Python for ML Glossary terms