March 2020
Beginner to intermediate
352 pages
8h 40m
English
Let's compute the maximum and minimum entry for each group. Here, we will find the maximum and minimum for the normalized-losses column:
# max() will print the maximum entry of each group style['normalized-losses'].max()# min() will print the minimum entry of each group style['normalized-losses'].min()
The output of the preceding code is as follows:
body-styleconvertible 122hardtop 93hatchback 65sedan 65wagon 74Name: normalized-losses, dtype: int64
As illustrated in the preceding output, the minimum value for each category is presented.
Read now
Unlock full access