more corrections
This commit is contained in:
@@ -385,8 +385,10 @@ def filter_df(datadf, fieldname, value, largerthan=True):
|
||||
def df_resample(datadf):
|
||||
# time stamps must be in seconds
|
||||
timestamps = datadf['TimeStamp (sec)'].astype('int')
|
||||
|
||||
datadf['timestamps'] = timestamps
|
||||
newdf = datadf.groupby(['timestamps']).mean()
|
||||
# newdf = datadf.groupby(['timestamps']).mean()
|
||||
newdf = datadf[~datadf.duplicated(['timestamps'])]
|
||||
return newdf
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user