-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
deregister_matplotlib_converters() in 0.25 incorrectly removes Matplotlib converters #27479
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
Ah, actually I think the problem might be that |
|
Why the pushback (out of interest)? Naïvely it seems to me that maintaining two different implementations (one in mpl, one in pandas) of the python-native datetime converters seems wrong to me; there is only one correct way to do the conversion. |
I don't recall the details, sorry.
…On Fri, Jul 19, 2019 at 11:28 AM David Stansby ***@***.***> wrote:
Why the pushback (out of interest)? Naïvely it seems to me that
maintaining two different implementations (one in mpl, one in pandas) of
the python-native datetime converters seems wrong to me; there is only one
correct way to do the conversion.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27479?email_source=notifications&email_token=AAKAOIURAOT2QTSPRX64YW3QAHTS5A5CNFSM4IFHOTTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MDRZQ#issuecomment-513292518>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIVMPRT2QC3V2O7BLCLQAHTS5ANCNFSM4IFHOTTA>
.
|
I think it'd be great if pandas just used Matplotlib's converters, but can easily imagine that would cause issues, particularly as our converters changed around 3.0. It just seems like a nuisance to have two sets of converters. But for sure, it would be nice if the matplotlib converters were re-loaded when the panda ones are deregistered 😉 |
I'm 100% on board with just using Matplotlib. I don't think any of the current pandas maintainers understand of converters :) Just need to figure out a way to get there that isn't too disruptive. |
Yeah, I imagine back-compatabilty would be the biggest problem if you are still supporting MPL 2.x |
That's not fully correct I think. The pandas converters do provide more features and a better user experience, but, we are speaking then about the Period-based converters (and we do convert regular datetime64 timeseries to periods). |
Anyway, justed wanted to say: it is not that easy to just move to matplotlib's converters. But if people are interested in discussing this more in depth, let's open a new issue for it (as we should for sure fix the regression of not restoring the converters correctly). |
Consider
deregister_matplotlib_converters()
should only removepandas
converters, and not any other converters in the MPL units registry, but in pandas 0.25 it removes some of the Matplotlib converters.Problem description
For pandas 0.24 this prints:
But for pandas 0.25 it gives
This means
pandas.plotting.deregister_matplotlib_converters
is removing some of the built in matplotlib converters from the units registry when it shouldn't be; this is causing some of our tests to break upstream (xref matplotlib/matplotlib#14859)The text was updated successfully, but these errors were encountered: