Skip to content

CLN: de-duplicate asof_locs #37567

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 2 commits into from
Nov 2, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

We might want to deprecate allowing DatetimeIndex where in PeriodIndex.asof_locs. We only have one test for it, and allowing it is inconsistent with how we treat other comparisons (unless we want to start allowing dt64 in PeriodArray.searchsorted...)

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Nov 2, 2020
@jreback jreback added this to the 1.2 milestone Nov 2, 2020
@jreback
Copy link
Contributor

jreback commented Nov 2, 2020

We might want to deprecate allowing DatetimeIndex where in PeriodIndex.asof_locs. We only have one test for it, and allowing it is inconsistent with how we treat other comparisons (unless we want to start allowing dt64 in PeriodArray.searchsorted...)

can you point to where this is (confusing because we use the variable name where)

@jbrockmendel
Copy link
Member Author

can you point to where this is (confusing because we use the variable name where)

tests.series.methods.test_asof test_periodindex

@jreback
Copy link
Contributor

jreback commented Nov 2, 2020

can you point to where this is (confusing because we use the variable name where)

tests.series.methods.test_asof test_periodindex

ok why don't you create an issue with a pointer to the code.

@jreback jreback merged commit 25c5412 into pandas-dev:master Nov 2, 2020
@jbrockmendel jbrockmendel deleted the ref-asof_locs branch November 2, 2020 14:30
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
ukarroum pushed a commit to ukarroum/pandas that referenced this pull request Nov 2, 2020
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.

2 participants