how to convert object to int64 in pandas series code example Example: object to int64 pandas >>> df['purchase'].astype(str).astype(int)