User Guide
API reference
Development
Array objects
Constants
Universal functions (ufunc)
Routines
Array creation routines
Array manipulation routines
Binary operations
String operations
C-Types Foreign Function Interface (numpy.ctypeslib)
Datetime Support Functions
Data type routines
Optionally SciPy-accelerated routines (numpy.dual)
Mathematical functions with automatic domain (numpy.emath)
Floating point error handling
Discrete Fourier Transform (numpy.fft)
Functional programming
NumPy-specific help functions
Indexing routines
Input and output
Linear algebra (numpy.linalg)
Logic functions
Masked array operations
Mathematical functions
Matrix library (numpy.matlib)
Miscellaneous routines
Padding Arrays
Polynomials
Random sampling (numpy.random)
Set routines
Sorting, searching, and counting
Statistics
Test Support (numpy.testing)
Window functions
Typing (numpy.typing)
Global State
Packaging (numpy.distutils)
NumPy Distutils - Users Guide
NumPy C-API
NumPy internals
SIMD Optimizations
NumPy and SWIG
Padding Arrays
¶
pad
(array, pad_width[, mode])
Pad an array.
numpy.disp
numpy.pad