Methods of ndarray

The NumPy ndarray class has a lot of methods that work on the array. Most of the time, these methods return an array. You may have noticed that many of the functions that are a part of the NumPy library have a counterpart with the same name and functionality in the ndarray object. This is mostly due to the historical development of NumPy.

The list of ndarray methods is pretty long, so we cannot cover them all. The var, sum, std, argmax, argmin, and mean functions that we saw earlier are also ndarray methods.

To clip and compress arrays, look at the following section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.31.77