Commit 70468445 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixed a bug regarding float64 to json in boxplot

parent 91a142e1
......@@ -57,14 +57,14 @@ class BoxplotTask(AnalyticTask):
for category in results['categories']:
values = df[(df['subset'] == subset) &
(df['category'] == category) &
(df['feature'] == feature)]['value']
(df['feature'] == feature)]['value'].tolist()
if len(values) < 2:
continue
label = '{}//{}//s{}'.format(feature, category, subset + 1)
group_values.append(values)
stats = self.boxplot_statistics(values)
u_outliers = values > stats['u_wsk']
l_outliers = values < stats['l_wsk']
u_outliers = np.array(values) > stats['u_wsk']
l_outliers = np.array(values) < stats['l_wsk']
outliers = np.bitwise_or(u_outliers, l_outliers)
df.loc[(df['subset'] == subset) &
(df['category'] == category) &
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment