I'm reading a .csv file in python using command as:
data = np.genfromtxt('home_data.csv', dtype=float, delimiter=',', names=True)
this csv has one column with zipcode which are numerals but in string format, for eg "85281". This column has values as nan:
data['zipcode']
Output : array([ nan, nan, nan, ..., nan, nan, nan])
How can I convert these values in string to integers so as to get an array of values and not of 'nan's.