I'm trying to run pd.scatter_matrix() function in Jupyter Notebook with my code below:
import matplotlib.pyplot as plt
import pandas as pd
# Load some data
iris = datasets.load_iris()
iris_df = pd.DataFrame(iris['data'], columns=iris['feature_names'])
iris_df['species'] = iris['target']
pd.scatter_matrix(iris_df, alpha=0.2, figsize=(10, 10))
plt.show()
But I'm getting
AttributeError: module 'pandas' has no attribute 'scatter_matrix'.
Even after executing conda update pandas and conda update matplotlib commands in Terminal, this is still occurring.
I executed pd.__version__ command to check my pandas version and it's '0.24.2'. What could be the problem?


plotting: see the docs please check the api against your version