Introduction to NumPy and Matplotlib
Chapter 2: NumPy arrays
NumPy array attributes
As you should be aware by now, np.array (or rather np.ndarray) is a class. Therefore, a np.array can have attributes associated with it.
The official documentation provides a complete list of np.array attributes.
Rather than me explaining the attributes, let’s try to get you to remember the most important attributes through a quiz! Just make an informed guess from the name of the attributes (no penalty for getting it wrong!)
❮
❯