I have a panda series in which each columns are "objects", I want to convert some of them into integers. It does not work for columns with too large numbers, I get the error "int too big to convert".
I've searched through the web and the forum but I did not understand the various answers, I am pretty new to Python. I get that my "numbers" are too long...I don't get why Python has an issue with that... exporting the dataframe into an excel file for instance works just fine and then I can do my pivot tables without any issue (excel recognise the numbers as integers) but I really want to be able to do that in Python...
here the code
ex_numb = 2461401487610497195867
np.uint64(ex_numb)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-109-e8c58111a107> in <module>
1 ex_numb = 2461401487610497195867
----> 2 np.uint64(ex_numb)
OverflowError: int too big to convert
import sys sys.maxsize
9223372036854775807