title: Python. TypeError: '<' not supported between instances of 'str' and 'int'
body: <pre><code>from google.colab import drive
  drive.mount('/content/drive')
  % cd/content/drive/My Drive/data
  
  import matplotlib.pyplot as plt
  import numpy as np
  import pandas as pd
  
  data = pd.read_csv("d.csv", dtype=str, sep='\t')
  
  print(data)
  
  column1 = data["Num_c"]
  column2 = data["Num_d"]
  
  x = np.array(column1)
  y = np.array(column2)
  
  np.where(y &lt; 0)
  </code></pre>
  
  <p>So I have two arrays, I want to use np.where() but it says</p>
  
  <pre><code>TypeError: '&lt;' not supported between instances of 'str' and 'int'.
  </code></pre>
  
  <p>How do I convert it to int?</p>
  
  <p>Also, how do I delete the first 5 data from both arrays with np.where()?</p>
  
  <p><strong>update:</strong></p>
  
  <pre><code>print(x) 
  # [1] ['48' '65' '124' '201' '294' '443' '574' '833' '1290' '1978' '2747' '4518' '5977' '7714' '9695' '11794' '14383' '17072' '20050' '23282' '26767' '30506']
  
  print(y)
  # [2] ['0' '0' '0' '4' '7' '10' '18' '26' '42' '57' '81' '107' '133' '171' '214''260' '305' '355' '407' '461' '518' '577']
  </code></pre>
  
  <p><strong>update2:</strong>
  I had to use <code>dtype= str</code> becuase the first column in the file is a string</p>