Commit 58c657d5 authored by Sascha Herzinger's avatar Sascha Herzinger

added df to histogram results

parent ce61158d
Pipeline #5981 passed with stages
in 37 minutes and 46 seconds
......@@ -83,6 +83,7 @@ class HistogramTask(AnalyticTask):
'dist': dist
}
return {
'data': df.to_json(orient='records'),
'stats': stats,
'subsets': subsets,
'categories': categories,
......
......@@ -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])
......
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