This page collects widely-used import aliases across the scientific Python stack. Conventions like np, pd, plt, and sns are broadly recognized in tutorials and docs. [1] [2] [3]
Import
import matplotlib.pyplot as pltNotes
Using plt for matplotlib.pyplot is a well-established convention in data viz materials.
Import
import numpy as npNotes
The np alias is a near-universal convention across learning resources and examples.
Import
import pandas as pdNotes
pd is the standard alias in tutorials and documentation.
Import
import seaborn as snsNotes
The seaborn docs themselves show import seaborn as sns and call it the conventional shorthand.
Import
import xarray as xrNotes
Tutorials commonly use xr when introducing Xarray and datasets. [paleoclim-....github.io]