-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: epoch2num matplotlib deprecation warning #34850
Comments
Same here:
Platform: Windows 10 |
Is there a workaround or how to approach this issue? |
If you really need a workaround you can monkey patch Maybe there's a cleaner way, but I can't think of one.
|
I have patched the local file
|
I confirm that modifying the file
and inserting the following code in lines 33-34:
circumvents the problem while developers don't provide a newer, patched code for |
An alternative is matplotlib patches epoch2num to use the new epoch machinery. We didn't use this function internally and didn't test it so derecation seemed reasonable. However if pandas uses it we can fix from our end for back compatibility. Longer term it might be good to homogenize pandas and matplotlib's date handling. It causes confusion for them to be different, and I suspect that python date handling has matured significantly since either pandas or matplotlib started implementing support. |
I'll try to look into this over the next day or two. Agreed that we should be relying on matplotlib's date handling as much as possible. |
@igavronski Temp workaround fixed the issue for the time being. |
I think I fixed this on the Matplotlib side with matplotlib/matplotlib#17983. I also removed the deprecation since its not fair to ask your users to filter the warning. OTOH, I think that in general, we would prefer to not maintain |
In my case, I found converter.py at the following location: C:\Users\USERNAME\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\plotting_matplotlib |
As of July 21st, installing the latest |
Could people post reproducible examples of plots that look different between mpl 3.2.2 and 3.3.0 with pandas 1.0.5? |
This figure ...
This figure ...
|
I have checked that this issue has not already been reported.
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.
Problem description
Using the current matplotlib master branch, pandas raises the following deprecation warning:
It looks like this line is present on pandas master, so should probably be changed (I'm not sure how) to avoid raising this deprecation warning.
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.8.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.0.4
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 47.1.1.post20200604
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : 3.0.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.15.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.1
matplotlib : 3.2.1.post2858+gc3bfeb9c3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.3
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
The text was updated successfully, but these errors were encountered: