interactive compare chart v1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user