Question:Let’s say I have a dataframe that looks like this…
And I want to convert the column to type
int. I can do that easily with…
And I try to convert it from
intthen I get this error
Answer:Just do a two step conversion, string to float then float to int.
If you have better answer, please add a comment about this, thank you!