I have an excel with following 3 large integers (in fact, they are ids). But in excel it will be stored in scientific mode. And when I use pandas to read the excel, I will lost precision since the integer is too large for int64 to store it.
Example data: (1.xlsx)
76307016609101000000000000000000
86412903902869300000000000000000
35575701294198100000000000000000
A = pd.read_excel("1.xlsx", engine="openpyxl", header=None, dtype=np.float64)
% no matter what the dtype is the result will be wrong
print(int(A.loc[0])) # 76307016609101001211632066494464 wrong
I don't know whether there's a type of int that's longer than int64 and supported by numpy/pandas. Thank you very much!!