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-style
convertible 122
hardtop 93
hatchback 65
sedan 65
wagon 74
Name: normalized-losses, dtype: int64
As illustrated in the preceding output, the minimum value for each category is presented.