You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure that the current behavior is right, so I would like to ask.
When I have a non-empty Dataframe I can use sum(level=['Project', 'Task'']) to get the MultiIndex Dataframe as my expectation. But when I try to sum the empty Dataframe, I got Index Dataframe instead of MultiIndex Dataframe and It has no index name and column name in there.
Is this the correct behavior or this is a bug. If this is the correct one, do you have any suggestions for me to handle this?
I'm not sure that the current behavior is right, so I would like to ask.
When I have a non-empty Dataframe I can use
sum(level=['Project', 'Task''])
to get the MultiIndex Dataframe as my expectation. But when I try to sum the empty Dataframe, I got Index Dataframe instead of MultiIndex Dataframe and It has no index name and column name in there.Is this the correct behavior or this is a bug. If this is the correct one, do you have any suggestions for me to handle this?
Thank you in advance.
Code Sample
Expected Output
Installed Version
python : 3.8.8
pandas : 1.2.3
numpy : 1.20.1
OS: Ubuntu 20.04.1 LTS (docker)
The text was updated successfully, but these errors were encountered: