I have a dateframe how can I convert Col2 to from a float to int?
df input
Col1 Col2 Col3
1 2.0 3.0
3 3.0 0.9
3 1.0 1.3
4 nan 1.3
df output
Col1 Col2 Col3
1 2 3.0
3 3 0.9
3 1 1.3
4 nan 1.3
I tried int() but couldn't get it to work for my dataframe.