polars
This commit is contained in:
@@ -2312,6 +2312,7 @@ def interactive_cum_flex_chart2(theworkouts, promember=0,
|
||||
columns_basic = columns_basic + ['spm', 'driveenergy', 'distance', 'workoutstate']
|
||||
|
||||
datadf = pd.DataFrame()
|
||||
start = timezone.now()
|
||||
if promember:
|
||||
datadf = dataprep.getsmallrowdata_pl(columns, ids=ids, doclean=True,
|
||||
workstrokesonly=workstrokesonly, for_chart=True)
|
||||
@@ -2319,6 +2320,7 @@ def interactive_cum_flex_chart2(theworkouts, promember=0,
|
||||
datadf = dataprep.getsmallrowdata_pl(columns_basic, ids=ids, doclean=True,
|
||||
workstrokesonly=workstrokesonly, for_chart=True)
|
||||
|
||||
print(timezone.now()-start)
|
||||
try:
|
||||
_ = datadf[yparam2]
|
||||
except (KeyError, ColumnNotFoundError): # pragma: no cover
|
||||
@@ -2415,7 +2417,7 @@ def interactive_cum_flex_chart2(theworkouts, promember=0,
|
||||
'trendline': trendline,
|
||||
}
|
||||
|
||||
script, div = get_chart("/dots", chart_data)
|
||||
script, div = get_chart("/dots", chart_data, debug=False)
|
||||
|
||||
return script, div
|
||||
|
||||
|
||||
Reference in New Issue
Block a user