Private
Public Access
1
0

added histogram

need to filter on spm, wps
This commit is contained in:
Sander Roosendaal
2019-04-29 19:25:47 +02:00
parent 90797df1d3
commit 991612d02b
5 changed files with 48 additions and 7 deletions

View File

@@ -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):