1. Home
  2. Docs
  3. Python-DataScience
  4. Data Process With Numpy
  5. Generating Arrays

Generating Arrays

How to generate commonly used np.arrays ?

arange+reshape

linspace+resize

About Resize and Reshape

reshape is not inplace operation and will return an value

resize is inplace operation without feedback

ones, zeros eye diag random.randint

In

Out

Compound Matrix

In

Out

Was this article helpful to you? Yes No

How can we help?