Question: In a pandas dataframe, say I have two rows with the same value in the name column I want to groupby by this name and

In a pandas dataframe, say I have two rows with the same value in the "name" column I want to groupby by this name and then aggregate both rows columns together by mean. Is there a way to do this without having to specify each column name but just apply the mean aggregation to all integer/float columns?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!