-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
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
loc row assignment with NaN and NaT coerces to either NaN or NaT #12499
Comments
fyi - quickie workaround:
|
Update: This almost looks fixed
However the element in Also this looks incorrect as well:
|
@mroeschke making sure we're on the same page before i write (and xfail) a test: in [11] we expect df["one"] to be float64 and have nan instead of NaT, right? |
Correct |
traceback
Same if you
loc[1] = [np.nan, np.nan]
. Seems the problem is loc assignment involving NaN for a datetime index column. Not sure the full breadth of the bug.Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: