使用matplotlib打印pandas_profiling打印折旧警告

时间:2020-08-12 21:56:22

标签: python python-3.x matplotlib pandas-profiling

环境:

  1. pandas_profiling-v2.8
  2. Python-3.7.1。
  3. 壳牌-3.2
  4. 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)

当我逐行在程序上方运行时,警告发生在最后一行。该警告是什么意思?它会影响输出报告吗?

0 个答案:

没有答案