Private
Public Access
1
0

interactive compare chart v1

This commit is contained in:
2024-03-17 11:18:00 +01:00
parent abb181eeef
commit bdaf5fada8
2 changed files with 16 additions and 7 deletions

View File

@@ -642,6 +642,8 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
pass
after = {}
return datadf
for workoutid in data_orig['workoutid'].unique():
after[workoutid] = len(
datadf[datadf['workoutid'] == workoutid].dropna())
@@ -1273,7 +1275,6 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp
data.append(df)
except (OSError, ArrowInvalid, IndexError):
pass
df['workoutid'] = id
try:
df = pd.concat(data, axis=0)
except ValueError: # pragma: no cover
@@ -1313,7 +1314,7 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp
data = clean_df_stats(data, ignorehr=True,
workstrokesonly=workstrokesonly)
data.dropna(axis=1, how='all', inplace=True)
data.dropna(axis=0, how='any', inplace=True)
data.dropna(axis=0, how='all', inplace=True)
return data
except TypeError:
pass