I am getting very strange behavior for a series of SKUs in my code when using "astype(float)" and "astype(int) and I am at a loss to explain why. This seems to only happen on my local machine (I couldn't duplicate it in an online Juypter Notebook).
Here is a list of products where this problem occurs and the DF I am creating with them:
products = {'SKU': [1111000120,1111000160,1111000182,1111000210,1111001300,2412601027,
2412601449,5172100236,5172100370,5172100713,7130104717]}
dfprod = pd.DataFrame.from_dict(products)
when I convert this df to fload and then back to int on my local machine I get the following: Conversion error
I found this question that treats a similar problem but is about C++ so I'm not too sure how applicable it is. sign changes when going from int to float and back