Answers for "how to convert float column to int column in python panda"

3

pandas convert float to int

df['col'] = df['col'].astype(int)
Posted by: Guest on January-25-2021
0

convert dataframe column to float

df["col"] = df["col"].astype(float)
Posted by: Guest on July-25-2021

Code answers related to "how to convert float column to int column in python panda"

Python Answers by Framework

Browse Popular Code Answers by Language