added histogram
need to filter on spm, wps
This commit is contained in:
@@ -1225,14 +1225,14 @@ def interactive_histoall(theworkouts,histoparam,includereststrokes):
|
||||
rowdata.dropna(axis=0,how='any',inplace=True)
|
||||
|
||||
if rowdata.empty:
|
||||
return "","No Valid Data Available","",""
|
||||
return "","No Valid Data Available"
|
||||
|
||||
try:
|
||||
histopwr = rowdata[histoparam].values
|
||||
except KeyError:
|
||||
return "","No data","",""
|
||||
return "","No data"
|
||||
if len(histopwr) == 0:
|
||||
return "","No valid data available","",""
|
||||
return "","No valid data available"
|
||||
|
||||
# throw out nans
|
||||
histopwr = histopwr[~np.isinf(histopwr)]
|
||||
@@ -1341,7 +1341,6 @@ def interactive_histoall(theworkouts,histoparam,includereststrokes):
|
||||
script = ''
|
||||
div = ''
|
||||
|
||||
|
||||
return [script,div]
|
||||
|
||||
def course_map(course):
|
||||
|
||||
Reference in New Issue
Block a user