title: Running a Python script through the Terminal that uses CSV as dataset
body: <p>I have a python script that imports MatPlotLib and plots stock prices.</p>
  
  <pre><code>import sys
  import matplotlib.pyplot as plt
  
  vals = [float(line.split(',')[7]) for line in sys.stdin]
  
  plt.plot(vals)
  plt.title('Stock Price Data')
  plt.ylabel('Adjusted Closing Price')
  plt.xlabel('Trading Day')
  plt.show()
  </code></pre>
  
  <p>I want to run this script in the terminal by importing a file named 2015_goog_sorted.csv (which is 2015 Google stock prices, sorted) as the values to be sorted.</p>
  
  <p>I'm on a Mac and using Atom</p>
  
  <p>I'm in the process of learning commands using unix and terminal, but I know there should be a relatively easy way to do this. </p>
  
  <p>Thanks in advance :)</p>