我的代码:
import seaborn as sns
fig = sns.jointplot((kati06),abs(AverageDailyEnergyList1),kind='reg',joint_kws={'line_kws':{'color':'red'}});
fig.set_axis_labels('Total daily Energy ($kW \cdot h \cdot m^{-2}$)', 'Error of total daily energy (%)', fontsize=16)
fig.savefig("C:\\Users\\Desktop\\Desktop\\output.png",dpi=1200)
错误:
C:\Users\Desktop\Anaconda3\lib\site-packages\statsmodels\nonparametric\kdetools.py:20: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
使用的样本 kati06 和 AverageDailyEnergyList1 是pandas.core.series.Series,长度为1659。它们的元素为float64。
如何避免出现VisibleDeprecationWarning或在什么情况下忽略它是合法的?