You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/07/02 14:21:32 UTC

[GitHub] [incubator-superset] ngritsuk edited a comment on issue #7406: Pivot table null values in columns

ngritsuk edited a comment on issue #7406: Pivot table null values in columns
URL: https://github.com/apache/incubator-superset/issues/7406#issuecomment-507699015
 
 
   Update: to fix my issue it's neccessary in PivotTableViz  class (superset/viz.py) 
   `
   df = df.pivot_table(
               index=self.form_data.get("groupby"),
               columns=self.form_data.get("columns"),
               values=[utils.get_metric_name(m) for m in self.form_data.get("metrics")],
               aggfunc=aggfunc,
               margins=self.form_data.get("pivot_margins"),
               **dropna**=False
           )
   `
   assign True to **dropna** option

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org