O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Descriptive information of a Categorical

The .describe() method on a Categorical will produce descriptive statistics in a manner similar to Series or DataFrame.

The result gives us the number of instances of each category and the frequency distribution of each.

The count of values for each category can be obtained using .value_counts().

And the min, max, and mode values are found using the respective methods.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required