We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In [5]: df = DataFrame([[np.nan, 1], [1, 0]], dtype=np.int64) In [6]: df Out[6]: 0 1 0 -9223372036854775808 1 1 1 0
The text was updated successfully, but these errors were encountered:
BUG: fix bug causing improper nan -> int cast in #846
17caaa4
Changing dtype at runtime still causes the wrong cast, however:
In [7]: test = pandas.DataFrame(data={"Values":[1.0, 2.0, 3.0, np.nan]}) In [8]: test["Values"].astype("int64") Out[8]: 0 1 1 2 2 3 3 -9223372036854775808 Name: Values
Sorry, something went wrong.
9ea685e
did some more work here, casting to integer with NAs raises a ValueError now
No branches or pull requests
The text was updated successfully, but these errors were encountered: