Unable to import csv file to python using the pd.read_csv command
<p>I am trying to read a csv file in Python 3.5 having imported pandas using the pd.read_csv command.  However the system returns the following error message:</p>

<blockquote>
  <blockquote>
    <blockquote>
      <p>Lung = pd.read_csv('c:\users\LungCapData.csv')
      SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \uXXXX escape</p>
    </blockquote>
  </blockquote>
</blockquote>

<p>In the above error message the left parenthesis is highlighted. 
Could you help me resolve this proble? Thank you!</p>

<p>You can try the following:</p>

<pre><code>Lung = pd.read_csv(r'c:\users\LungCapData.csv', sep=';')
</code></pre>

<p>this should split the columns seeing as you seem to have semi-colons as separators.</p>

python csv pandas