pandas dataframe convert object to int code example
Example 1: column dataframe to int
df[[column_name]].astype(int)
Example 2: object to int64 pandas
>>> df['purchase'].astype(str).astype(int)
df[[column_name]].astype(int)
>>> df['purchase'].astype(str).astype(int)