mistercrunch commented on a change in pull request #3086: add combine config
for metrics in pivot table
URL:
https://github.com/apache/incubator-superset/pull/3086#discussion_r129747026
##########
File path: superset/viz.py
##########
@@ -402,6 +402,9 @@ def get_data(self, df):
aggfunc=self.form_data.get('pandas_aggfunc'),
margins=self.form_data.get('pivot_margins'),
)
+ # Display metrics side by side with each column
+ if self.form_data.get('combine_metric'):
+ df = df.stack(0).unstack()
Review comment:
Ah! that looks much better!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services