title: How to sort a column using regex in pandas?
body: <p>In the 'New Cases' column, I have approximately the following values:</p>
  <p><code>+10 000</code>, <code>+ 1000</code>, <code>+ 100</code> and <code>+ 10, 0</code>.</p>
  <p>My code:</p>
  <pre><code>import re
  import pandas as pd
  iris = pd.read_csv('Covid-19.csv')
  a = iris['New Cases'].str.contains[r'+[d{5}]']
  iris.sort_values(a)
  </code></pre>
  <p>Stack trace:</p>
  <pre><code>------------------------------------------------------------------
  TypeError                        Traceback (most recent call last)
  &lt;ipython-input42-291424a61469&gt; in &lt;module&gt;
          2 import pandas as pd
          3 iris = pd.read_csv('Covid-19.csv')
  ------&gt; 4 a = iris['New Cases'].str.contains[r'+[d{5}]']
          5 iris.sort_values(a)
  
  TypeError 'method' object is not subscriptable
  </code></pre>