-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
VIS: NaN Handling in Pie Plots #8198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I would personally just change the default from filling with 0 to drop NA's |
The reason filling by 0 is to associate same colors to index in subplot case. NA can be dropped with masking unnecessary colors. |
It may actually be better still |
That sounds like a better idea, in any case the colors should of course stay the same. |
I've got a PR coming. Just need to push.
|
@TomAugspurger is this fixed? else can push |
This is done. Not sure why is wasn't closed. |
Fixed by #8307 |
From #8177 (comment), how should we handle NaNs in Pie Plots. Right now the documented behavior is to fill 0s and plot. This can result in some unattractive labeling depending on where the NaNs are at in the series.
This is actually the first case where I can see a use for a NaN-handling kwarg in
*.plot()
itself. You could reasonably want toI've got no idea how that proportion should be calculated (counts? relative to the sum or size?).
For now let's just decide if the default should change from filling 0s to filling dropping (with a couple releases of notice.)
cc @jorisvandenbossche @sinhrks
The text was updated successfully, but these errors were encountered: