"CSV file does not exist" - Pandas Dataframe
<p>I am currently learning Pandas for data analysis and having some issues reading a csv file in Atom editor. </p>

<p>When I am running the following code:</p>

<pre><code>import pandas as pd 

df = pd.read_csv("FBI-CRIME11.csv")

print(df.head())
</code></pre>

<p>I get an error message, which ends with </p>

<blockquote>
  <p>OSError: File b'FBI-CRIME11.csv' does not exist</p>
</blockquote>

<p>Here is the directory to the file: /Users/alekseinabatov/Documents/Python/"FBI-CRIME11.csv".</p>

<p>When i try to run it this way:</p>

<pre><code>df = pd.read_csv(Users/alekseinabatov/Documents/Python/"FBI-CRIME11.csv")
</code></pre>

<p>I get another error:</p>

<blockquote>
  <p>NameError: name 'Users' is not defined</p>
</blockquote>

<p>I have also put this directory into the "Project Home" field in the editor settings, though I am not quite sure if it makes any difference.</p>

<p>I bet there is an easy way to get it to work. I would really appreciate your help!     </p>

<p>Just referring to the filename like</p>

<pre><code>df = pd.read_csv("FBI-CRIME11.csv")
</code></pre>

<p>generally only works if the file is in the same directory as the script.</p>

<p>If you are using windows, make sure you specify the path to the file as follows:</p>

<pre><code>PATH = "C:\\Users\\path\\to\\file.csv"
</code></pre>

python csv pandas atom