Personal website Rudolf Adamkovič

Home / NumPy / Construction from sequences: np.array(SEQUENCE, OPTIONS)


Define

A function with the signature

numpy.array(SEQUENCE, dtype = dtype)

which

creates a new array from the given SEQUENCE,

like a list, tuple, and similar.

The dtype argument specifies the type.


© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.