Skip to content

Commit

Permalink
fix metrics type error in pivot table viz (apache#5025)
Browse files Browse the repository at this point in the history
transfer metrics dict label to list of string
  • Loading branch information
gangh authored and mistercrunch committed May 22, 2018
1 parent 973c661 commit b312cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def get_data(self, df):
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'),
)
Expand Down

0 comments on commit b312cda

Please sign in to comment.