0

I have a dataframe with 4 columns: Mes (month), Clientes (clients), Mercadorias (Assets) and Quantidade (quantity) and I'm trying to create a new dataframe grouping by the columns month and clients running the following code: data = df.groupby(['Mes','Clientes'])['Quantidade'].sum()

The output values are ok however it is creating a pandas.core.series.Series and wish to create a pandas.core.frame.DataFrame

Could someone please help me?

0 Answers0