There was a dataframe from describe() method result and I got exponential e type numbers like 2.83415e+07.

I applied astype(int) method to that dataframe to convert e expression into integer type.

And then I got a few of negative values when all of original values are positive.

I've search it before and there were some advices that try map(int).

Here are my question.

First, What is the reason for those negative values?

Second, What is the best way to convert data type while prevent this problem?

It's a bit shame that i could't fount the actual result and codes;(

I hope this notes will do.

Thank you!

0 Answers