from pandas.tools.plotting import scatter_matrix 改成 from pandas.plotting import scatter_matrix 我的公众号刚写不久,有兴趣可以关注一下