-1

I have a dataset with a lot of categorical data. I'm trying to reshape my dataframe by using groupby and pivot_table.I have find a list of aggregated function for numerical values such as:

'count','mean','max', 'sum'

I wanted to know if there is any equivalent for categorical values (Top, frequency etc). expect using the function .describe()

FK IE
  • 5
  • 5

1 Answers1

0
import pandas as pd

df = pd.DataFrame(data=yours_dataset)
df.describe() # top, frequency etc, max, min etc
fuwiak
  • 721
  • 1
  • 8
  • 25