I am trying to read CSV file by using python pandas, in the resultant dataframe one column is returned as float64 datatype instead of int64. But I could see most of the values are numbers and some of them are null values in the existing CSV file
df = pd.read_csv(file)
dh.head(3)
Name State Id
SFO CA 123.0
JFK NY 152.0
CHG IL NaN
ABC AZ NaN
df.dypes
Name Object
State Object
Id float64
I tried convert Id column into Int64 to upload data into oracle table
df['Id'] = df['Id'].astype('int64')
Error : Cannot convert NA to integer
Is there any approach to convert Id column into int64 ? I appreciate your response.