import pandas as pd print(pd.__version__) 我的pandas版本是1.0.5,所以语句scatter_matrix函数在plotting里边 pd.plotting.scatter_matrix