module 'pandas' has no attribute 'scatter_matrix'

这样可以解决
import pandas as pd pd.plotting.scatter_matrix(iris_df, alpha=0.2, figsize=(10, 10))

这样不行
from pandas.plotting import scatter_matrix

scatter_matrix(iris_df, alpha=0.2, figsize=(10, 10))
 

猜你喜欢

转载自www.cnblogs.com/jianchiai/p/11372432.html
今日推荐