我想绘制一个seaborn的regplot。
我的代码:
然而,这给我带来了未来的警告错误。如何修复这个警告?
x=data['Healthy life expectancy']
y=data['max_dead']
sns.regplot(x,y)
plt.show()
然而,这给我带来了未来的警告错误。如何修复这个警告?
FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid
positional argument will be 'data', and passing other arguments without an explicit keyword will
result in an error or misinterpretation.