There's more...

In addition to viewing the data points in an array, it is also useful to retrieve the minimum and maximum points of each feature in an array:

  1. To retrieve the minimum and maximum values for height, weight, and gender, the following script can be used:
print(data_array.max(axis=0))
print(data_array.min(axis=0))
  1. The output from the script can be seen in the following screenshot:

The maximum height is 74 inches and minimum height is 60 inches. The maximum weight is 188 lbs, while the minimum weight is 107 lbs. The minimum and maximum values for gender are not as relevant, as we have assigned them numeric values of 0 and 1