title: Replacing backward slash in python / pandas
body: <p>I am trying to replace some <code>\</code> characters with <code>/</code> in some <code>csv</code> files (because I'm moving from windows to linux and need to modify pathnames that are listed in the <code>.csv</code> files.).</p>
  
  <p>I have this:</p>
  
  <pre><code> import pandas as pd
   file = 'my_file.csv'
   df = pd.read_csv(file)
   df = df.replace('\','/')
   df.to_csv(file)
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>file "&lt;ipython-input-29-9556415d69a6&gt;", line 5
      df = df.replace('\','/')
                              ^
  SyntaxError: EOL while scanning string literal
  </code></pre>
  
  <p>I can replace any other character but teh <code>\</code> causes problems, presumably because it is trying to interpret the string as a path?</p>
  
  <p>What am I doing wrong??</p>