简体   繁体   English

python seaborn FutureWarning-不显示情节

[英]python seaborn FutureWarning - does not show plot

I'm running python 3.6.1 on Anaconda. 我在Anaconda上运行python 3.6.1。 Whenever I try plotting with seaborn, I get the following warning. 每当我尝试与seaborn密谋时,都会收到以下警告。

C:\Anaconda3\lib\site-packages\seaborn\categorical.py:1428: FutureWarning: remove_na is deprecated and is a private function. Do not use.
  stat_data = remove_na(group_data)

even if I try with the barplot example posted on the page below, https://seaborn.pydata.org/generated/seaborn.barplot.html 即使我尝试下面页面上发布的barplot示例, https: //seaborn.pydata.org/genic/seaborn.barplot.html

I still get the same result. 我仍然得到相同的结果。

Thanks in advance. 提前致谢。


I simplified the code. 我简化了代码。 But the result is the same as well 但是结果也一样

[this is the same code from https://seaborn.pydata.org/generated/seaborn.barplot.html ] [这与https://seaborn.pydata.org/genic/seaborn.barplot.html中的代码相同]

import seaborn as sns

sns.set_style("whitegrid")
tips = sns.load_dataset("tips")
sns.barplot(x="day", y="total_bill", data=tips)

This issue was fixed in Aug 2017. It was triggered by Seaborn calling a private function in Pandas. 此问题已于2017年8月修复。此问题是由Seaborn在Pandas调用私人功能触发的。

See Pandas ticket and Seaborn ticket . 请参阅熊猫票Seaborn票 Update your Seaborn and this warning should go away. 更新您的Seaborn,此警告应该消失了。

urp.. I left out the plt.show() code.. What an absurd thing to do.. urp ..我省去了plt.show()代码..这是一件荒谬的事情。

My problem of the plot not showing up was resolved with the following code added, 我的剧情未显示的问题已通过添加以下代码解决,

import matplotlib.pyplot as plt
plt.show()

However, the FutureWarning message still crops up. 但是,FutureWarning消息仍然出现。 Please DO post an answer if anyone knows how to deal with it. 如果有人知道如何处理,请务必发布答案。

Thank you very much 非常感谢你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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