I have columns of strings and I have to convert it into values. I used this code
and unfortunately the fillna method don't work at this example.
How can I fix the problem?
Here's the head()
data['country_txt'] = data['country_txt'].astype('float64') 
data['city'] = data['city'].astype('float64') 
I expected a normal result but the actual output is all fulled with NaN values:
country_txt 0 non-null float64 city 0 non-null float64
 
     
    