The vanilla pandas way (the boring way)

Anyone working with data in Python will be familiar with the pandas package. If you’re not, pandas is the go-to package for most rows-&-columns formatted data. If you don’t have pandas yet, make sure to install it using pip install in your preferred terminal:

pip install pandas

Now, let’s see what the default pandas implementation can do for us:

Pretty decent, but also bland.. And where did the “method” column go?

For those unaware of what’s happening above:

Any pandas ‘DataFrame’ has a .describe() method which returns the summary above. However, notice that in the output of this method, the categorical variables are missing. In the example above the “method” column is completely omitted from the output!

Let’s see if we can do any better.

(hint: … we can!)