Skip to main content
Back to top
Ctrl
+
K
User Guide
API reference
Building from source
Development
Release notes
Learn
More
NEPs
Choose version
GitHub
User Guide
API reference
Building from source
Development
Release notes
Learn
NEPs
Choose version
GitHub
Section Navigation
NumPy’s module structure
Array objects
Universal functions (
ufunc
)
Routines and objects by topic
Constants
Array creation routines
Array manipulation routines
Bit-wise operations
String functionality
Datetime support functions
Data type routines
Mathematical functions with automatic domain
Floating point error handling
Exceptions and Warnings
Discrete Fourier Transform
Functional programming
Input and output
numpy.load
numpy.save
numpy.savez
numpy.savez_compressed
numpy.lib.npyio.NpzFile
numpy.loadtxt
numpy.savetxt
numpy.genfromtxt
numpy.fromregex
numpy.fromstring
numpy.ndarray.tofile
numpy.ndarray.tolist
numpy.array2string
numpy.array_repr
numpy.array_str
numpy.format_float_positional
numpy.format_float_scientific
numpy.memmap
numpy.lib.format.open_memmap
numpy.set_printoptions
numpy.get_printoptions
numpy.printoptions
numpy.binary_repr
numpy.base_repr
numpy.lib.npyio.DataSource
numpy.lib.format
Indexing routines
Linear algebra
Logic functions
Masked array operations
Mathematical functions
Miscellaneous routines
Polynomials
Random sampling
Set routines
Sorting, searching, and counting
Statistics
Test support
Window functions
Typing (
numpy.typing
)
Packaging
NumPy C-API
Array API standard compatibility
CPU/SIMD optimizations
Thread Safety
Global Configuration Options
NumPy security
Status of
numpy.distutils
and migration advice
numpy.distutils
user guide
NumPy and SWIG
NumPy reference
Routines and objects by topic
Input and output
numpy.array_str
numpy.array_str
#
numpy.
array_str
(
a
,
max_line_width
=
None
,
precision
=
None
,
suppress_small
=
None
)