Skip to content

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

Merged
merged 3 commits into from
Jan 23, 2020

Conversation

jbrockmendel
Copy link
Member

Series lookups are affected for the Float64Index case.

@@ -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

Copy link
Contributor

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

Copy link
Member Author

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?

Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Member Author

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

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Jan 20, 2020
Copy link
Contributor

@jreback jreback left a 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

Copy link
Contributor

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

@jbrockmendel
Copy link
Member Author

gentle ping; this a blocker before fixing the .at bug

@jreback jreback added this to the 1.1 milestone Jan 23, 2020
@jreback jreback merged commit d5e4bc5 into pandas-dev:master Jan 23, 2020
@jbrockmendel jbrockmendel deleted the ref-get_value6 branch January 23, 2020 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants