How can I solve ” module ‘pandas’ has no attribute ‘scatter_matrix’ ” error?

This method is under pandas.plotting – docs and pandas.plotting.scatter_matrix:

from pandas.plotting import scatter_matrix

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

Leave a Comment