musduo opened a new issue #14929:
URL: https://github.com/apache/superset/issues/14929
How can I change viz.py to prevent it from showing null where there is no
data in the grouped bar graph.I want it to print 0 instead of the null value.
I think this is the part related to it
`
#pandas will throw away nulls when grouping/pivoting,
# so we substitute NULL_STRING for any nulls in the necessary columns
filled_cols = self.groupby + columns
df = df.copy()
df[filled_cols] = df[filled_cols].fillna(value=NULL_STRING)
`
I'm writing 0 instead of NULL_STRING, but that doesn't have any effect.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]