目录
解决问题
1. Traceback (most recent call last): 2. File "F:\test2021011.py", line 60, in <module> 3. JointGridScatterPlot(col_nums02,data_frame) 4. File "F:\site-packages\DataVisualize_Functions2D.py", line 222, in JointGridScatterPlot 5. fg.annotate(stats.pearsonr) 6. AttributeError: 'JointGrid' object has no attribute 'annotate'
解决思路
属性错误:'JointGrid'对象没有'annotate'属性
解决方法
1. fg=sns.JointGrid(x=cols[0],y=cols[1],data=data_frame,) 2. fg=fg.plot_joint(plt.scatter,color='m',edgecolor='white') 3. fg.annotate(stats.pearsonr)
JointGrid类中没有该方法,建议升级或者更新包的版本。