Creating NumPy Arrays
Published:
NumPy arrays are a core part of the numerical computing stack in Python. NumPy provides a large number of functions for creating these arrays, of which np.array
is most well known (due to ubiquitous use in tutorials). However, np.array
is not always the right function to use. This post will explore some other common array creation functions.