mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
fix metrics type error in pivot table viz (#5025)
transfer metrics dict label to list of string
This commit is contained in:
committed by
Maxime Beauchemin
parent
973c661501
commit
b312cdad2f
@@ -691,7 +691,7 @@ class PivotTableViz(BaseViz):
|
||||
df = df.pivot_table(
|
||||
index=self.form_data.get('groupby'),
|
||||
columns=self.form_data.get('columns'),
|
||||
values=self.form_data.get('metrics'),
|
||||
values=[self.get_metric_label(m) for m in self.form_data.get('metrics')],
|
||||
aggfunc=self.form_data.get('pandas_aggfunc'),
|
||||
margins=self.form_data.get('pivot_margins'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user