SyntaxFix
Write A Post
Hire A Developer
Questions
You must assign it, like this:-
df['id']= df['id'].astype(str)