Private
Public Access
1
0

added filtering on OTW efficiency < 200

This commit is contained in:
Sander Roosendaal
2018-01-09 08:48:10 +01:00
parent 0187f3200e
commit 22eb1c0f9a
2 changed files with 8 additions and 2 deletions

View File

@@ -295,6 +295,12 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
except KeyError:
pass
try:
mask = datadf['efficiency'] > 200.
datadf.loc[mask, 'efficiency'] = np.nan
except KeyError:
pass
try:
mask = datadf['spm'] < 10
datadf.loc[mask, 'spm'] = np.nan