fix whitespace

master
François Boulogne 2 months ago
parent dc6d0fb7d8
commit fe93780f8f

@ -9,14 +9,14 @@ def load_data_RH_logger(filepath):
header = f.readline() header = f.readline()
header = header.strip('# ').rstrip('\n').split('|') header = header.strip('# ').rstrip('\n').split('|')
header.append('X') # Empty col... header.append('X') # Empty col...
df = pd.read_csv(filepath, sep=' ', names=header, skiprows=1) df = pd.read_csv(filepath, sep=' ', names=header, skiprows=1)
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.drop(df[df['time'] < 0.02 * 3600].index)
df = df.reset_index() df = df.reset_index()

Loading…
Cancel
Save