-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix the un-pickleable plot with DatetimeIndex #18486
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
BUG: Fix the un-pickleable plot with DatetimeIndex #18486
Conversation
can u add a test as well |
@jreback Where should I add test? Inside |
sure |
0.21.1 release note as well, yes |
Codecov Report
@@ Coverage Diff @@
## master #18486 +/- ##
==========================================
- Coverage 91.59% 91.58% -0.02%
==========================================
Files 155 153 -2
Lines 51255 51256 +1
==========================================
- Hits 46948 46943 -5
- Misses 4307 4313 +6
Continue to review full report at Codecov.
|
Thanks @jreback, fixed! |
lgtm. ping on green. |
CI failed because of the test. I'll check. |
@jreback Seems that the pickling |
87d082e
to
8797d20
Compare
Now added the restriction to Python 3. |
|
||
# GH18439 | ||
if PY3: | ||
with ensure_clean(return_filelike=True) as path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could test for the round trip here, but prob overkill
@@ -1470,5 +1471,10 @@ def _check_plot_works(f, freq=None, series=None, *args, **kwargs): | |||
|
|||
with ensure_clean(return_filelike=True) as path: | |||
plt.savefig(path) | |||
|
|||
# GH18439 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this only PY3?
add a more informative comment, not just the issue, e.g. ensure round-trip pickle compat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Licht-T saw your comment, ok then, just make a comment that we are pickling instancemethods which is supported on PY3 only (hmm thought this did work on PY2)
@@ -1470,5 +1471,10 @@ def _check_plot_works(f, freq=None, series=None, *args, **kwargs): | |||
|
|||
with ensure_clean(return_filelike=True) as path: | |||
plt.savefig(path) | |||
|
|||
# GH18439 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Licht-T saw your comment, ok then, just make a comment that we are pickling instancemethods which is supported on PY3 only (hmm thought this did work on PY2)
can you update |
@jreback Okay! I'll re-check the pickling issue on Python 2 and update until tomorrow. |
can you update |
8797d20
to
a3d909b
Compare
Sorry @jreback! Now updated! |
lgtm |
thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff