pandas and NumPy 3 · NumPy

Create an array

Create an array from a list. Arrays hold one type and operate on all items at once.

a = np.array([1, 2, 3])

Official pandas and NumPy 3 documentation

More numpy commands

All numpy commands · pandas and NumPy 3 cheatsheet

Was this page helpful?