title: How to plot a graph of expected vs actual values in python?
body: <p><strong>Current Dataframe</strong></p>
  
  <pre><code>          Original      Predicted
  0           1059         810.37
  1           1441         527.76
  2           977          366.07
  ...
  744         2000         1878.18
  </code></pre>
  
  <p>Expected Graph</p>
  
  <p><a href="https://i.stack.imgur.com/X9eL3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X9eL3.png" alt="H&lt;code&gt;enter code here&lt;/code&gt;"></a></p>
  
  <p>Code that I have tried:</p>
  
  <pre><code>plt.plot(arr, sub_df['original'], 'b-', label = 'actual')
  plt.plot(arr, sub_df['predicted'], 'ro', label = 'prediction')
  plt.xticks(rotation = '60'); 
  plt.legend()
  </code></pre>
  
  <p>Current Output:</p>
  
  <p><a href="https://i.stack.imgur.com/ZosqZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZosqZ.png" alt="enter image description here"></a></p>