add every in loading

master
François Boulogne 3 weeks ago
parent fe93780f8f
commit a35cf796ab

@ -1 +1 @@
__version__ = '0.1.3' __version__ = '0.1.4'

@ -1,7 +1,7 @@
import pandas as pd import pandas as pd
import numpy as np import numpy as np
def load_data_RH_logger(filepath): def load_data_RH_logger(filepath, every=1):
""" """
""" """
@ -14,13 +14,10 @@ def load_data_RH_logger(filepath):
df = df.drop(columns='X') df = df.drop(columns='X')
df = df.drop(np.arange(1)) df = df.drop(np.arange(1))
df['dm_m'] = (df['weight'] - df['weight'].iloc[0]) / df['weight'].iloc[0]
df['dm_m'] = (df['weight'] - df['weight'].iloc[0]) / df['weight'].iloc[0]
# Crop data # Crop data
#df = df.drop(df[df['time'] < 0.02 * 3600].index)
df = df.reset_index() df = df.reset_index()
del df['index'] del df['index']
#df.head() return df.iloc[::every]
#df = df[df['time'] > 301_000]
return df

Loading…
Cancel
Save