-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Conversation
Hello @gfyoung! Thanks for submitting the PR.
|
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
If it isn't part of the public API, then I'd say so.
…On Wed, Sep 12, 2018 at 1:23 PM gfyoung ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In doc/source/whatsnew/v0.24.0.txt
<#22672 (comment)>:
> @@ -557,6 +557,7 @@ Deprecations
- :func:`pandas.read_table` is deprecated. Instead, use :func:`pandas.read_csv` passing ``sep='\t'`` if necessary (:issue:`21948`)
- :meth:`Series.str.cat` has deprecated using arbitrary list-likes *within* list-likes. A list-like container may still contain
many ``Series``, ``Index`` or 1-dimensional ``np.ndarray``, or alternatively, only scalar values. (:issue:`21950`)
+- :meth:`FrozenNDArray.searchsorted` has deprecated the ``v`` parameter in favor of ``value`` (:issue:`14645`)
Hmmm...good point. it's not part of the public API. Could we just change
it immediately?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#22672 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIhBfY8IU6Bqh5X29Y2ZVg9GAe5TTks5uaVEPgaJpZM4WkcMY>
.
|
8d1b41d
to
c162b3b
Compare
f309594
to
4e9e8bc
Compare
@TomAugspurger : Change was made, and everything is still green. PTAL. |
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. |
lgtm |
"values" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
4e9e8bc
to
a0ccac1
Compare
@jreback @TomAugspurger : Reverted back to deprecation warning. If no objections, will merge. |
ok, pls make sure to add to the deprecations page, otherwise lgtm. |
"value" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"value" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"value" is the law of the land.
xref #14645.
Follow-up to #15601.