Skip to content
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

MAINT: Standardize searchsorted signature #22672

Merged
merged 1 commit into from
Sep 15, 2018

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Sep 12, 2018

"value" is the law of the land.

xref #14645.

Follow-up to #15601.

@gfyoung gfyoung added Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Deprecate Functionality to remove in pandas labels Sep 12, 2018
@gfyoung gfyoung added this to the 0.24.0 milestone Sep 12, 2018
@pep8speaks
Copy link

Hello @gfyoung! Thanks for submitting the PR.

@codecov
Copy link

codecov bot commented Sep 12, 2018

Codecov Report

Merging #22672 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #22672      +/-   ##
==========================================
- Coverage   92.17%   92.17%   -0.01%     
==========================================
  Files         169      169              
  Lines       50715    50710       -5     
==========================================
- Hits        46747    46742       -5     
  Misses       3968     3968
Flag Coverage Δ
#multiple 90.58% <100%> (-0.01%) ⬇️
#single 42.35% <75%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/indexes/frozen.py 91.42% <100%> (+0.25%) ⬆️
pandas/core/common.py 97.34% <0%> (-0.06%) ⬇️
pandas/io/formats/style.py 96.42% <0%> (-0.01%) ⬇️
pandas/core/indexes/multi.py 95.41% <0%> (-0.01%) ⬇️
pandas/core/indexes/base.py 96.45% <0%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c040353...c162b3b. Read the comment docs.

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Sep 12, 2018 via email

@gfyoung gfyoung force-pushed the frozen-searchsorted branch from 8d1b41d to c162b3b Compare September 13, 2018 00:49
@gfyoung gfyoung changed the title DEPR: Standardize searchsorted signature MAINT: Standardize searchsorted signature Sep 13, 2018
@gfyoung gfyoung removed the Deprecate Functionality to remove in pandas label Sep 13, 2018
@gfyoung gfyoung force-pushed the frozen-searchsorted branch 2 times, most recently from f309594 to 4e9e8bc Compare September 13, 2018 20:08
@gfyoung
Copy link
Member Author

gfyoung commented Sep 14, 2018

@TomAugspurger : Change was made, and everything is still green. PTAL.

@TomAugspurger
Copy link
Contributor

Hmm, so I looked at where this was actually used

In [21]: idx = pd.MultiIndex.from_product([['a', 'b'], [1, 2, 3]])

In [22]: idx.labels[0]
Out[22]: FrozenNDArray([0, 0, 0, 1, 1, 1], dtype='int8')

which is, I suppose is close enough to public API that this should be deprecated. Sorry about the misleading comment earlier @gfyoung.

@jreback
Copy link
Contributor

jreback commented Sep 14, 2018

lgtm

"values" is the law of the land.

xref pandas-devgh-14645.

Follow-up to pandas-devgh-15601.
@gfyoung gfyoung force-pushed the frozen-searchsorted branch from 4e9e8bc to a0ccac1 Compare September 14, 2018 18:16
@gfyoung
Copy link
Member Author

gfyoung commented Sep 14, 2018

@jreback @TomAugspurger : Reverted back to deprecation warning. If no objections, will merge.

@jreback
Copy link
Contributor

jreback commented Sep 15, 2018

ok, pls make sure to add to the deprecations page, otherwise lgtm.

@gfyoung gfyoung merged commit 9b9f6bd into pandas-dev:master Sep 15, 2018
@gfyoung gfyoung deleted the frozen-searchsorted branch September 16, 2018 04:00
aeltanawy pushed a commit to aeltanawy/pandas that referenced this pull request Sep 20, 2018
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants