title: Getting error: int() argument must be a string, a bytes-like object or a number, not 'numpy.dtype
body: <p>I import this csv file:</p>
  <pre><code>sales = pd.read_csv('http://samplecsvs.s3.amazonaws.com/SalesJan2009.csv')
  </code></pre>
  <p>I am trying to make pivot table but I notice when I do this:</p>
  <pre><code>sales.pivot_table(index='Product', columns='Payment_Type', values= 'Price' )
  </code></pre>
  <p>I get an error</p>
  <blockquote>
  <p>Price column is string dtype</p>
  </blockquote>
  <p>Then I try to convert the column to float and do this:</p>
  <pre><code>sales.Price.astype('float64')
  </code></pre>
  <p>Then, it shows</p>
  <blockquote>
  <p>Error: could not convert string to float: '13,000'</p>
  </blockquote>
  <p>I realize there's a value in <code>Price</code> column with comma in it, so float conversion can't happen. So I remove the comma by method below and use <code>iloc</code> to check if it worked and it did, that value changed to 13000:</p>
  <pre><code>sales['Price']= sales.Price.str.replace(',', '')
  
  sales.iloc[558, 2]
  </code></pre>
  <p>And when I try to convert the Price column to float64 I again get this error which I don't understand:</p>
  <pre><code>sales['Price'] = sales.Price.astype('int64')
  </code></pre>
  <blockquote>
  <p>Error: Getting error: int() argument must be a string, a bytes-like object or a number, not 'numpy.dtype'</p>
  </blockquote>
  <p>Does anyone know what is happening? What type is this <code>numpy.dtype</code>? It's neither <code>numpy.float64</code> nor <code>numpy.int64</code>.</p>
  <p>How do I solve this issue?</p>