-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone
Description
Code Sample, a copy-pastable example if possible
In [2]: pd.UInt64Index._na_value
Out[2]: 0
Problem description
The basic logic here is that UInt64Index
should mimic Int64Index
in that it cannot hold na. As it's currently defined, UInt64Index
can hold it's _na_value
, which brings about issues for internal code that uses _na_value
.
Relevant discussion here.
Simply making the change from 0 to np.nan
breaks a couple tests, and brings to light an existing bug, so there's a little more work than just changing _na_value
. Will submit a PR shortly.
Metadata
Metadata
Assignees
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate