module 'pandas' has no attribute 'scatter_matrix'

运行pandas.scatter_matrix两两散点图的时候报错
在这里插入图片描述
奇怪,大家明明都是这么用pd.scatter_matrix,后来通过查找pandas文档,发现现在的pandas的scatter_matrix用法已经发生变化了,变成了pandas.plotting.scatter_matrix
在这里插入图片描述
参考资料:http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.plotting.scatter_matrix.html


版权声明:本文为weixin_44936542原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。