title: How can I solve " module 'pandas' has no attribute 'scatter_matrix' " error?
body: <p>I'm trying to run <code>pd.scatter_matrix()</code> function in Jupyter Notebook with my code below:</p>
  <pre><code>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()
  </code></pre>
  <p>But I'm getting
  <code>AttributeError: module 'pandas' has no attribute 'scatter_matrix'</code>.
  Even after executing <code>conda update pandas</code> and <code>conda update matplotlib</code> commands in Terminal, this is still occurring.</p>
  <p>I executed <code>pd.__version__</code> command to check my pandas version and it's <code>'0.24.2'</code>. What could be the problem?</p>