Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractalis
Commits
58c657d5
Commit
58c657d5
authored
Jul 31, 2018
by
Sascha Herzinger
Browse files
added df to histogram results
parent
ce61158d
Pipeline
#5981
passed with stages
in 37 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fractalis/analytics/tasks/histogram/main.py
View file @
58c657d5
...
...
@@ -83,6 +83,7 @@ class HistogramTask(AnalyticTask):
'dist'
:
dist
}
return
{
'data'
:
df
.
to_json
(
orient
=
'records'
),
'stats'
:
stats
,
'subsets'
:
subsets
,
'categories'
:
categories
,
...
...
tests/unit/analytics/histogram/test_histogram.py
View file @
58c657d5
...
...
@@ -35,6 +35,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[
cat_df
])
...
...
@@ -60,6 +61,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[])
...
...
@@ -80,6 +82,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[])
...
...
@@ -111,6 +114,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[
cat_df
])
...
...
@@ -141,6 +145,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[
cat_df
])
...
...
@@ -173,6 +178,7 @@ class TestHistogramTask:
with
pytest
.
raises
(
ValueError
)
as
e
:
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[
cat_df
])
...
...
@@ -203,6 +209,7 @@ class TestHistogramTask:
columns
=
[
'id'
,
'feature'
,
'value'
])
result
=
self
.
task
.
main
(
id_filter
=
[],
bw_factor
=
0.5
,
num_bins
=
10
,
subsets
=
[],
data
=
df
,
categories
=
[
cat_df
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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