title: How to add a line of best fit to scatter plot
body: <p>I'm currently working with Pandas and matplotlib to perform some data visualization and I want to add a line of best fit to my scatter plot.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import matplotlib
  import matplotlib.pyplot as plt
  import pandas as panda
  import numpy as np
  
  def PCA_scatter(filename):
  
     matplotlib.style.use('ggplot')
  
     data = panda.read_csv(filename)
     data_reduced = data[['2005', '2015']]
  
     data_reduced.plot(kind='scatter', x='2005', y='2015')
     plt.show()
  
  PCA_scatter('file.csv')
  </code></pre>
  
  <p>How do I go about this?</p>