Home > Software design >  Dataset not reflecting changes after applying lambda function, how to commit changes?
Dataset not reflecting changes after applying lambda function, how to commit changes?

Time:10-06

I want to save this dataset exactly in this given image format, i have tried saving it with to csv function but this does not seem to work outside

CodePudding user response:

I guess you can just do : data = data.groupby(..)

CodePudding user response:

As you can see in pandas groupby docs the method returns a GroupBy Object; so in order to store it, you have to give it to a variable:

df_grouped = df.groupby(.....)
  • Related