Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jochem Bijlard
fractalis
Commits
70468445
Commit
70468445
authored
Apr 11, 2018
by
Sascha Herzinger
Browse files
Fixed a bug regarding float64 to json in boxplot
parent
91a142e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
fractalis/analytics/tasks/boxplot/main.py
View file @
70468445
...
...
@@ -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
)
&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment