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

Implement any and all for pyarrow numpy strings #54591

Merged
merged 32 commits into from
Aug 28, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Aug 16, 2023

This should work if we want to follow NumPy semantics as close as possible. I think this should work in general, but that's a discussion for another day

phofl and others added 11 commits August 21, 2023 11:15
…semantics_na_val

# Conflicts:
#	pandas/tests/arrays/string_/test_string.py
#	pandas/tests/extension/test_string.py
# Conflicts:
#	pandas/tests/arrays/string_/test_string.py
#	pandas/tests/extension/test_string.py
…semantics_na_val

# Conflicts:
#	pandas/tests/strings/__init__.py
#	pandas/tests/strings/test_split_partition.py
# Conflicts:
#	pandas/tests/extension/test_string.py
@jbrockmendel
Copy link
Member

I think this should work in general, but that's a discussion for another day

+1

(Also I recently realized that Index(["A", "B"]).any_or_all() is different from Series(["A", "B"]).any_or_all() and we should deprecate to get matching behavior)

phofl and others added 2 commits August 22, 2023 17:23
# Conflicts:
#	pandas/core/arrays/string_arrow.py
#	pandas/tests/arrays/string_/test_string.py
#	pandas/tests/strings/test_case_justify.py
@phofl
Copy link
Member Author

phofl commented Aug 23, 2023

rebased as well

@lithomas1
Copy link
Member

Is the goal to get this in for 2.1 or is this fine for a later release?

@phofl
Copy link
Member Author

phofl commented Aug 27, 2023

Ideally we get this in, but not a deal breaker.

cc @jorisvandenbossche for a final review

@lithomas1 lithomas1 added this to the 2.1 milestone Aug 27, 2023
@lithomas1 lithomas1 added Strings String extension data type and string data Arrow pyarrow functionality labels Aug 27, 2023
@jorisvandenbossche jorisvandenbossche merged commit 23b546f into pandas-dev:main Aug 28, 2023
32 of 33 checks passed
@lumberbot-app
Copy link

lumberbot-app bot commented Aug 28, 2023

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout 2.1.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 23b546f96f49611541585c3914301ba874ced308
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #54591: Implement any and all for pyarrow numpy strings'
  1. Push to a named branch:
git push YOURFORK 2.1.x:auto-backport-of-pr-54591-on-2.1.x
  1. Create a PR against branch 2.1.x, I would have named this PR:

"Backport PR #54591 on branch 2.1.x (Implement any and all for pyarrow numpy strings)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

@phofl
Copy link
Member Author

phofl commented Aug 28, 2023

I'll take care of the back-Ort

phofl added a commit to phofl/pandas that referenced this pull request Aug 28, 2023
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>

(cherry picked from commit 23b546f)
phofl added a commit that referenced this pull request Aug 28, 2023
@jbrockmendel
Copy link
Member

I think this should work in general, but that's a discussion for another day

Another day has come!

mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants