panda mengonversi float menjadi int
df['col'] = df['col'].astype(int)
Jolly Jaguar
df['col'] = df['col'].astype(int)
>>> df
A B C D
0 0.475103 0.355453 0.66 0.869336
1 0.260395 0.200287 NaN 0.617024
2 0.517692 0.735613 0.18 0.657106
>>> df[list("ABCD")] = df[list("ABCD")].fillna(0.0).astype(int)
>>> df
A B C D
0 0 0 0 0
1 0 0 0 0
2 0 0 0 0
df['DataFrame Column'] = df['DataFrame Column'].astype(float)