SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
df[['id']] = df[['id']].astype(pd.Int64Dtype())
If you print it's dtypes, you will get id Int64 instead of normal one int64
dtypes
id Int64
one int64