-
Notifications
You must be signed in to change notification settings - Fork 572
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
pandas.lib module is deprecated and will be removed in a future version. #618
Comments
you have solve the problem?,i also meet the warning , |
Can you also provide the code that results in this warning? Otherwise it is hard to know if the issue has been fixed. The issue is because of the line It will also help if your provided more details about your environment such as version of pandas in order to reliably fix the problem. |
Hi, I'd like to up vote this issue. My current setup: I'm working on OSX 10.12.6 To reproduce the issue, it's as easy as The issue itself is the following warning
|
I am using https://github.com/has2k1/plotnine by now, which is actually maintained. |
I update pandas to 0.23.0 and can not import ggplot because these problem. In pandas 0.23.0 Timestamp can import like "from pandas import Timestamp" . does ggplot not update any more? |
I am using ggplot 0.11.5 and am facing the issue where its not able to import timestamp from pandas library since I am using the latest version of pandas. Is this a bug or am I doing something wrong ImportError Traceback (most recent call last) /anaconda/envs/py35/lib/python3.5/site-packages/ggplot/init.py in () /anaconda/envs/py35/lib/python3.5/site-packages/ggplot/stats/init.py in () /anaconda/envs/py35/lib/python3.5/site-packages/ggplot/stats/stat_smooth.py in () /anaconda/envs/py35/lib/python3.5/site-packages/ggplot/stats/smoothers.py in () ImportError: cannot import name 'Timestamp' |
In smoothers.py changing
to
resolved the issue for me. |
@scaresnake's solution works for me. (I'm using ggplot version 0.11.5 and pandas version 0.23.0) |
Fixes ggplot import failure due to breaking changes starting .22 in move of Timestamp from pandas pandas.libs to pandas._libs.lib yhat/ggpy#618 https://pandas.pydata.org/pandas-docs/version/0.22.0/whatsnew.htmltimes
Oops, wrong project. |
Please use |
@jbrockmendel @jreback Sorry for the spam. Somehow searched in the wrong place. |
Go to Then, change
|
For ggplot 0.11.5 (in anaconda for python 3.6.2) I get the warning
[...]/lib/python3.6/site-packages/ggplot/stats/smoothers.py:4: FutureWarning: The pandas.lib module is deprecated and will be removed in a future version. These are private functions and can be accessed from pandas._libs.lib instead from pandas.lib import Timestamp
The text was updated successfully, but these errors were encountered: