-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: corner cases in DTI.get_value, Float64Index.get_value #31163
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
Conversation
@@ -773,3 +773,14 @@ def test_get_loc_nat(self): | |||
# GH#20464 | |||
index = DatetimeIndex(["1/3/2000", "NaT"]) | |||
assert index.get_loc(pd.NaT) == 1 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe better to parmateize over the accepted nulls (do we have a fixture for date time nulls?) and then have an errors version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill put that on my list of follow-ups, we're about 2/3 of the way towards having get_value be internally consistent.
Thoughts on the Series.at outlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what’s the Series.at outlier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill put that on my list of follow-ups, we're about 2/3 of the way towards having get_value be internally consistent.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what’s the Series.at outlier?
in the test here ser.loc[4]
behaves like ser.loc[4.0]
, while ser.at[4]
raises
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine.
@@ -773,3 +773,14 @@ def test_get_loc_nat(self): | |||
# GH#20464 | |||
index = DatetimeIndex(["1/3/2000", "NaT"]) | |||
assert index.get_loc(pd.NaT) == 1 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill put that on my list of follow-ups, we're about 2/3 of the way towards having get_value be internally consistent.
sure
gentle ping; this a blocker before fixing the .at bug |
Series lookups are affected for the Float64Index case.