I somehow have a strange conversion problem in python. I have an object column which I want to convert to an int column to save some memory space.
I run the following command:
df['Number'] = df['IntC'].astype(int)
and somehow for some rows it ends up like this:
IntC Number
233004885002 -188830000475
233048850003 -195883838200
What is happening here? I would expect this output:
IntC Number
233004885002 233004885002
233048850003 233048850003
.astype('int64').