Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 1.31 KB

File metadata and controls

71 lines (41 loc) · 1.31 KB

Scientific Computing Aliases

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]

Matplotlib (pyplot) → plt

Import

import matplotlib.pyplot as plt

Notes

Using plt for matplotlib.pyplot is a well-established convention in data viz materials.


NumPy → np

Import

import numpy as np

Notes

The np alias is a near-universal convention across learning resources and examples.


pandas → pd

Import

import pandas as pd

Notes

pd is the standard alias in tutorials and documentation.


Seaborn → sns

Import

import seaborn as sns

Notes

The seaborn docs themselves show import seaborn as sns and call it the conventional shorthand.


Xarray → xr

Import

import xarray as xr

Notes

Tutorials commonly use xr when introducing Xarray and datasets. [paleoclim-....github.io]