title: How to specify file path in jupyter notebook
body: <p>I have problem in specifying path of my file in jupyter notebook/google colab. This is the example code I found:</p>
  
  <pre><code>import csv
  
  csvFile = 'myData.csv'
  xmlFile = 'myData.xml'
  
  csvData = csv.reader(open(csvFile))
  xmlData = open(xmlFile, 'w')
  </code></pre>
  
  <p>I do not know where the author of the code above place the myData.csv, so I have tried this code to locate my file:</p>
  
  <pre><code>csvFile = 'C:\Users\...\myData.csv'
  </code></pre>
  
  <p>but I get this error:</p>
  
  <p>SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape</p>
  
  <p>I also have tried this code:</p>
  
  <pre><code>csvFile = r'C:\Users\...\myData.csv'
  </code></pre>
  
  <p>but I get this error:
  FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\...\myData.csv'</p>
  
  <p>My questions are:
  1. Where the author of the code above place the myData.csv?
  2. How can I specify the file location?</p>