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_r129479531
 
 

 ##########
 File path: superset/viz.py
 ##########
 @@ -384,6 +384,25 @@ def query_obj(self):
         d['groupby'] = list(set(groupby) | set(columns))
         return d
 
+    def combine_metric(self, df):
 
 Review comment:
   I think you can do all this in 2 lines of code using stack/unstack. 
https://pandas.pydata.org/pandas-docs/stable/reshaping.html#reshaping-by-stacking-and-unstacking
 
----------------------------------------------------------------
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

Reply via email to