Answers for "int64 to int panda"

3

column dataframe to int

df[[column_name]].astype(int)
Posted by: Guest on April-21-2021
0

object to int64 pandas

>>> df['purchase'].astype(str).astype(int)
Posted by: Guest on March-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language