NumPy loadtxt: Read Text Files into Arrays

Numpy Loadtxt

Use NumPy loadtxt to read simple text files into arrays, with examples for delimiters, dtypes, skipped rows, selected columns, and converters.

NumPy insert: Add Values to Arrays

numpy insert

Learn how NumPy insert adds values before an index along a chosen axis, with syntax, parameters, and examples for array insertion.

NumPy eye: Create Identity-Like Arrays

numpy eye

Use NumPy eye to create 2D arrays with ones on a chosen diagonal and zeros elsewhere, including k offsets, shape arguments, and examples.

NumPy hstack: Stack Arrays Horizontally

Numpy Hstack

Learn how NumPy hstack stacks arrays horizontally by columns, with syntax, shape rules, and examples for combining 1D and 2D arrays.

NumPy vstack: Stack Arrays Vertically

Numpy Vstack

Learn how NumPy vstack stacks arrays vertically by rows, with syntax, shape requirements, and examples for joining 1D and 2D arrays.

NumPy tile: Repeat Arrays in Python

numpy tile

Use NumPy tile to repeat arrays or matrices along chosen dimensions, with syntax, repeat patterns, and examples for 1D and 2D inputs.

NumPy squeeze: Remove Singleton Axes

NumPy squeeze guide showing singleton axes removed from an array shape

Learn how NumPy squeeze removes axes of length 1 from arrays, with axis-specific examples, shape changes, and common use cases.