I read data from a CSV file and almost all columns are of the object type. How can I convert them into int. I tried several options but without success. The CSV file is in image. I am especially interested in columns latitude and longitude.
df = pd.read_csv('file'.csv)
de.head()
df.dtypes
listings object
url object
guests object
bedrooms int64
beds int64
bathrooms int64
room_type object
price float64
host_name object
reviews int64
stars float64
location object
latitude object
longitude object
dtype: object

df.longitude = df.longitude.astype(int)?df['longitude'] = df['longitude'].astype(str).astype(int)?