简体   繁体   中英

FutureWarning: pandas.tslib is deprecated and will be removed in a future version

Im trying to import MTcars dataset but im getting this error

enter image description here

I just ran into this warning this morning. I was able to get rid of it by following these steps:

  1. Open command prompt and change directory to .../site-packages/ggplot/
  2. Enter utils.py and the file will open in your default program for .py files
  3. On line 81 change pd.tslib.Timestamp to pd.Timestamp
  4. Save the file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM