Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2018-03-13 08:11:09 +01:00
parent a76931b918
commit cdbf2459ed
2 changed files with 6 additions and 3 deletions

View File

@@ -324,7 +324,6 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
except KeyError:
pass
# protect 0 spm values from being nulled
try:
datadf['spm'] = datadf['spm'] + 1.0
@@ -386,6 +385,7 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
except KeyError:
pass
try:
mask = datadf['pace'] / 1000. > 300.
datadf.loc[mask, 'pace'] = np.nan
@@ -1699,7 +1699,9 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True):
if doclean:
data = clean_df_stats(data, ignorehr=True,
workstrokesonly=workstrokesonly)
data.dropna(inplace=True,axis=0)
data.dropna(axis=1,how='all',inplace=True)
data.dropna(axis=0,how='any',inplace=True)
return data

View File

@@ -1,7 +1,8 @@
<h2>Personal information collection</h2>
<p>
At rowsandall.com we take your privacy very seriously. IN order to provide access
At rowsandall.com we take your privacy very seriously.
In order to provide access
to the service we must collect and store some personal information about you.
</p>