title: Pandas str.replace of pipe character not working?
body: <p>I am facing an issue in using pandas str.replace on Series. I am using pandas in Jupyter notebook (although the result is the same with regular python script). </p>
  
  <pre><code>import pandas as pd
  s = ["abc | def"]
  df = pd.DataFrame(data=s)
  
  print(s[0].replace(" | ", "@"))
  print(df[0].str.replace("| ", "@"))
  print(df[0].map(lambda v: v.replace("| ", "@")))
  </code></pre>
  
  <p>Here is the result</p>
  
  <pre><code>ipython Untitled1.py 
  
  abc@def
  0    @a@b@c@ @|@ @d@e@f@
  Name: 0, dtype: object
  0    abc @def
  Name: 0, dtype: object
  </code></pre>