April 2015
Beginner to intermediate
504 pages
8h 36m
English
NumPy arrays have many functions that can be applied to the arrays. Many of these are statistical functions that you can use for data analysis. The following example describes several of the useful functions.
Note that most of these functions work on multi-dimensional arrays, and the axis to which the function is applied to is specified by the axis parameter. We will examine this for the .min() and .max() functions, but note that the axis parameter applies to many other NumPy functions.
The .min() and .max() methods return the minimum and maximum values in an array. The .argmax() and .argmin() functions return the position of the maximum or minimum value in the array:
In [82]: # demonstrate some of the ...
Read now
Unlock full access