Skip to content Skip to sidebar Skip to footer

Trouble Averaging Specific Rows In Pandas Dataframe

I currently have the following two DataFrames: raw_data= Time F1 F2 F3 2082-05-03 00:00:59.961599999 -83.769997 29.430000

Solution 1:

You got rid of your 'Time' column in ave_data.index.name=u'Time'. Change it with:

ave_data.set_index('Time', drop=False, inplace=True)

That makes sure you set it as an index, but you keep the 'Time' column.

Post a Comment for "Trouble Averaging Specific Rows In Pandas Dataframe"