title: Cannot run csv module on Python 3.7/Spyder/Anaconda
body: <p>I'm trying to open a CSV file on Python 3.7/Spyder/Anaconda IDE. </p>
  
  <p>I want to learn how to import csv files either by using pandas and by using the csv libraries. </p>
  
  <p>The following code worked well and a <em>csvfile</em> variable containing the data frame was created:</p>
  
  <pre><code>import pandas as pd
  csvfile = pd.read_csv(r'C:\Users\Documents\PyLearning\data_file.csv', sep=',')
  </code></pre>
  
  <p>However I didn't get the same result with the csv module. After running the following code, nothing happend. </p>
  
  <pre><code>import csv
  csvfile = open('data_file.csv', 'rb')
  reader = csv.reader(csvfile)
  </code></pre>
  
  <p>I got no error message but no variable was created.  </p>
  
  <p>I would like to some help to understand why this is happening.  </p>
  
  <p>EDIT: It seems csv module was replaced by unicodecsv module at more recent python versions
  <a href="https://pypi.org/project/unicodecsv/" rel="nofollow noreferrer">https://pypi.org/project/unicodecsv/</a></p>