title: Python Pandas: error: missing ), unterminated subpattern at position 2
body: <p>I have a dataframe which contains the characters <code>(((</code> I would like to replace. But I get error after doing this:</p>
  
  <pre><code>data = [{'Title': 'set1((("a", "b", "c")))'},
       {'Title': 'set2((("d", "e", "f")))'},
       {'Title': 'set3((("g", "h", "i")))'},
       {'Title': 'set4((("j", "k", "l")))'},
       {'Title': 'set5((("m", "n", "o")))'},
       {'Title': 'set6((("p", "q", "r")))'}]
  
  df = pd.DataFrame(data)
  df
  
  # df['Title'] = df['Title'].str.replace('set', 'M') # Works correctly
  df['Title'] = df['Title'].str.replace('(((', '&gt;&gt;') # Not working
  </code></pre>
  
  <p>How do I solve this error in order to to replace <code>(((</code> by <code>&gt;&gt;</code> and <code>)))</code> by <code>&lt;&lt;</code>?</p>