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

BUG: algos.rank with readonly values #38396

Merged
merged 3 commits into from
Dec 10, 2020

Conversation

jbrockmendel
Copy link
Member

One of the two current npdev failures is caused by numpy/numpy#17884

@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Dec 10, 2020
@simonjayhawkins simonjayhawkins added the Compat pandas objects compatability with Numpy or Python functions label Dec 10, 2020
@@ -824,7 +824,7 @@ def rank_1d(
if values.dtype != np.object_:
values = values.astype('O')
else:
values = np.asarray(in_arr)
values = np.asarray(in_arr).copy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prob can remove L838-841 as we are always copying no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, updated

@jbrockmendel
Copy link
Member Author

updated + green, this will fix the npdev CI build

@jreback jreback merged commit 5f6bf14 into pandas-dev:master Dec 10, 2020
@jreback
Copy link
Contributor

jreback commented Dec 10, 2020

great

@jbrockmendel jbrockmendel deleted the ci-npdev-17884 branch December 10, 2020 19:45
@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.2.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Dec 11, 2020
simonjayhawkins pushed a commit that referenced this pull request Dec 11, 2020
Co-authored-by: jbrockmendel <jbrockmendel@gmail.com>
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants