title: Issues converting numerical values to string values based on logical conditions
body: <p>I'm trying to assign numerical values to string, based on conditions with this code:</p>
  <pre><code>import pandas as pd
  
  dfwind.loc[(dfwind['windspeed - mph'] &gt;= 0) &amp; (dfwind['windspeed - mph'] &lt; 2),
               'windspeed - mph'] = '0 - &lt;2'
  dfwind.loc[(dfwind['windspeed - mph'] &gt;= 2) &amp; (dfwind['windspeed - mph'] &lt; 4),
               'windspeed - mph'] = '2 - &lt;4'
  dfwind.loc[(dfwind['windspeed - mph'] &gt;= 4) &amp; (dfwind['windspeed - mph'] &lt; 6),
               'windspeed - mph'] = '4 - &lt;6'
  </code></pre>
  <p>When i run this line i have no problem:</p>
  <pre><code>dfwind.loc[(dfwind['windspeed - mph'] &gt;= 0) &amp; (dfwind['windspeed - mph'] &lt; 2),
                   'windspeed - mph'] = '0 - &lt;2'
  </code></pre>
  <p>But when i run the other ones i got an error message:</p>
  <pre><code>TypeError: '&gt;=' not supported between instances of 'str' and 'int'
  </code></pre>
  <p>How can i solve this?</p>
  <p>Thanks in advance</p>