I tried to convert a column from data type float64 to int64 using:
float64
int64
df[\'column name\'].astype(int64)
but got an e
consider using
df['column name'].astype('Int64')
nan will be changed to NaN
nan
NaN