-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: pandas.DataFrame.apply gives different results between pandas versions 1.1.4 and 1.2.0 #39327
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
Thanks for the report - on master I get the result
This looks reasonable to me. What are you expecting @brandonlind? |
Pandas 1.2.0 gives this:
so where the first (with But it seems this is already fixed in 1.2.1 (@brandonlind pandas 1.2.1 was released 2 days ago, so if you update pandas it should work again) Might still be worth adding a test for it (don't know if the patch that fixed it was for something similar). |
thanks everyone! |
Thanks @jorisvandenbossche and @simonjayhawkins |
Uh oh!
There was an error while loading. Please reload this page.
[ x] I have checked that this issue has not already been reported.
[ x] I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
[this should explain why the current behaviour is a problem and why the expected output is a better solution]
The two versions of pandas (1.1.4 and 1.2.0) give different results when
axis=1
Expected Output
They should be the same when
axis=1
Output of
pd.show_versions()
even though my "pandas 1.2.0 environment" is python 3.8.5 while my "pandas 1.1.4 environment" is python 3.7.9, the problem is resolved if I revert the python 3.8.5 environment to pandas 1.1.4.
pandas 1.1.4 environment
pandas 1.2.0 environment
[paste the output of
pd.show_versions()
here leaving a blank line after the details tag]The text was updated successfully, but these errors were encountered: