converting dtype int32 to int64 pandas code example Example: object to int64 pandas >>> df['purchase'].astype(str).astype(int)