-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: applymap on empty DataFrame returns Series #8222
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
the test for reduction is on an empty Series (e.g. so maybe not that sophisticated. pull-request welcome to fix (though maybe tricky). |
This is an API change from 0.12 and is not documented! 0.12:
0.15:
|
@stringfellow well I suspect it actually changed in 0.13. Since their wasn't a test, a regression like this is very hard to detect. As I said above a pull-request to restore this behavior would be welcome. |
I just checked this with 0.18.0 and I still get a Series back. Is this supposed to be fixed in the near future? |
this issue is still open, pull-requests are welcome |
fix whatsnew file
fix whatsnew file Adjust whatsnew to API change and add test with data
…ndas-dev#14977) fix whatsnew file Adjust whatsnew to API change and add test with data
I'm unsure about a corner case I encountered:
full example
I would have expected to get the empty DataFrame back.
The text was updated successfully, but these errors were encountered: