title: filter special characters in a dataframe
body: <p>I have the following dataframe called <code>data</code>:</p>
  <pre><code>    metrics    artists
  
  0    0.21    ['ZhanÃ©']
  2    0.14    ['Mose Allison']
  3    0.87    ['水柳仙']
  4    0.25    ['Shel Silverstein']
  </code></pre>
  <p>Some records of the column &quot;artists&quot; have special characters, I want to make another df with the records that have special characters, that is, the following output:</p>
  <p>data:</p>
  <pre><code>     metrics    artists
  
  0    0.14    ['Mose Allison']
  1    0.25    ['Shel Silverstein']
  </code></pre>
  <p>data2:</p>
  <pre><code>     metrics    artists
  
  0    0.21    ['ZhanÃ©']
  1    0.14    ['水柳仙']
  </code></pre>
  <p>use:</p>
  <pre><code> data2=data.artists[data.artists.str.contains(&quot;[^a-zA-Z0-9]&quot;)]
  </code></pre>
  <p>but I get the original df,</p>
  <p>I also tried with:</p>
  <pre><code>data2 = []
  for x in data['artists']:
      if x is not &quot;[^a-zA-Z0-9 ]&quot;:
           data2[x]=data[x]
      print(data2)
  </code></pre>
  <p>but it gives me the error:</p>
  <pre><code>KeyError: &quot;['ZhanÃ©']&quot;
  </code></pre>
  <p>and with:</p>
  <pre><code>if x is &quot;[^ a-zA-Z0-9]&quot;
  </code></pre>
  <p>returns empty records.</p>