newtoncy commented on a change in pull request #11615:
URL:
https://github.com/apache/incubator-superset/pull/11615#discussion_r523961045
##########
File path: superset/viz.py
##########
@@ -972,9 +972,10 @@ def _nest(self, metric: str, df: pd.DataFrame) ->
List[Dict[str, Any]]:
if nlevels == 1:
result = [{"name": n, "value": v} for n, v in zip(df.index,
df[metric])]
else:
+ this_level_index = {i[0] for i in df.index}
Review comment:
The order doesn't seem to matter, because the front end reorders by size.
But I thought it might be better to keep it in order, so I added a few lines
----------------------------------------------------------------
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]