-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[BUG] fixed DateOffset pickle bug when months >= 12 #35258
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
Conversation
This issue is caused by the However, this change does cause 1 existing test ( Reason why the test failed: {'normalize': False, '_offset': relativedelta(years=+1), '_use_relativedelta': True, 'kwds': {'years': 1}, 'n': 1} which is different from that of current version {'_offset': relativedelta(years=+1), '_use_relativedelta': True, 'years': 1, 'n': 1, 'normalize': False} Note the difference in how Before this PR, the test was still ok because |
@fujiaxiang can you move release note to 1.2 |
…_bug # Conflicts: # doc/source/whatsnew/v1.1.0.rst
@simonjayhawkins have moved whatsnew to 1.2. Thanks! |
@jreback I have used There is an issue with the pickle protocol compatibility. I am using python 3.8.5 in my local environment. When generating the pickle file, the script automatically select the highest protocol which is 5 in python 3.8. However, this protocol is not supported in python 3.7 and below, thus causing some of the tests to fail in CI. In my local env these tests are passed. What's your suggestion here? Should I use an environment of python 3.7 to generate the file? Another option is update the |
@fujiaxiang you have to run with older versions of pandas (e.g. 0.25.3 or 1.0) and then commit the results to master; not avverse to running with 1.1 as well ok on using defaulting the pickle argument as well (but that's separate) |
…ol and regenerated pickle file
@jreback Thanks, I have updated the script to use default protocol. Also I am running with the released 1.1 pandas to generate the file. btw I updated the comment on how to run that script because there is now a folder |
@jbrockmendel if any comments. |
LGTM |
thanks @fujiaxiang very nice! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff