fixing a bug
This commit is contained in:
@@ -416,6 +416,8 @@ def trendflexdata(workouts, options, userid=0):
|
||||
pd.cut(datadf[groupby], bins, labels=False))
|
||||
except (ValueError, AttributeError): # pragma: no cover
|
||||
return ('', 'Error: not enough data')
|
||||
except TypeError:
|
||||
return ('','Error: something wrong with the data')
|
||||
else: # pragma: no cover
|
||||
try:
|
||||
bins = np.arange(datadf['days ago'].min()-binsize,
|
||||
|
||||
Reference in New Issue
Block a user