Private
Public Access
1
0

more corrections

This commit is contained in:
2023-06-09 07:51:26 +02:00
parent 0adb3201af
commit 26e9050afb
3 changed files with 36 additions and 33 deletions

View File

@@ -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