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): ...@@ -57,14 +57,14 @@ class BoxplotTask(AnalyticTask):
for category in results['categories']: for category in results['categories']:
values = df[(df['subset'] == subset) & values = df[(df['subset'] == subset) &
(df['category'] == category) & (df['category'] == category) &
(df['feature'] == feature)]['value'] (df['feature'] == feature)]['value'].tolist()
if len(values) < 2: if len(values) < 2:
continue continue
label = '{}//{}//s{}'.format(feature, category, subset + 1) label = '{}//{}//s{}'.format(feature, category, subset + 1)
group_values.append(values) group_values.append(values)
stats = self.boxplot_statistics(values) stats = self.boxplot_statistics(values)
u_outliers = values > stats['u_wsk'] u_outliers = np.array(values) > stats['u_wsk']
l_outliers = values < stats['l_wsk'] l_outliers = np.array(values) < stats['l_wsk']
outliers = np.bitwise_or(u_outliers, l_outliers) outliers = np.bitwise_or(u_outliers, l_outliers)
df.loc[(df['subset'] == subset) & df.loc[(df['subset'] == subset) &
(df['category'] == category) & (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