如何解决使用matplotlib打印pandas_profiling打印折旧警告
环境:
- pandas_profiling-v2.8
- Python-3.7.1。
- 壳牌-3.2
- MacOs-10.15.6
当我通过运行进行报告时
import pandas_profiling as pdp
df = pd.read_csv('some.csv',sep='\t',encoding='utf-16')
report =pdp.ProfileReport(df)
report.to_file(output_file='my_report.html')
我在下面收到了折旧警告。
/Users/myname/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pandas_profiling/visualisation/plot.py:154: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. In future versions,you will not be able to modify a registered colormap in-place. To remove this warning,you can make a copy of the colormap first. cmap = copy.copy(mpl.cm.get_cmap("RdBu"))
cmap.set_bad(cmap_bad)
当我逐行在程序上方运行时,警告发生在最后一行。该警告是什么意思?它会影响输出报告吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。