pandas and NumPy 3 · NumPy

Create a range

Create evenly spaced values, either by step or by count.

np.arange(0, 10, 2)
np.linspace(0, 1, 5)

Official pandas and NumPy 3 documentation

More numpy commands

All numpy commands · pandas and NumPy 3 cheatsheet

Was this page helpful?