Creating numpy arrays
Martin McBride, 2018-02-10
Tags arrays data types
There are various ways to create numpy arrays:
- Filled with a fixed value such as all zeros.
- Filled with a series of values such as all 1, 2, 3....
- Filled with existing data.
- Filled with random data.
This section also covers the different data types that arrays can use.
Visit the PythonInformer Discussion Forum for numeric Python.
If you found this article useful, you might be interested in the book NumPy Recipes or other books by the same author.Prev