Skip to content

[ArrowStringArray] REF: extract/extractall column names #41417

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 1 commit into from
May 12, 2021

Conversation

simonjayhawkins
Copy link
Member

No description provided.

@simonjayhawkins simonjayhawkins added Refactor Internal refactoring of code Strings String extension data type and string data labels May 11, 2021
@simonjayhawkins simonjayhawkins added this to the 1.3 milestone May 11, 2021
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, nice clean up

return None


def _get_group_names(regex: Pattern) -> List[Hashable]:
Copy link
Member

Choose a reason for hiding this comment

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

This code has been working for a while, but wondering if it'd be useful to add a test for this function, seems trivial to add.

@jreback jreback merged commit fb70ca4 into pandas-dev:master May 12, 2021
@jreback
Copy link
Contributor

jreback commented May 12, 2021

thanks @simonjayhawkins

wouldn't object to moar tests

@simonjayhawkins simonjayhawkins deleted the ref-group-names branch May 12, 2021 08:30
@simonjayhawkins
Copy link
Member Author

the column naming already seems to be extensively tested in the extract/extractall tests with named groups, unnamed groups, some unnamed groups, one group, two groups etc.

this is a precursor to #41372, same for extractall and then the dispatch to pyarrow kernels and perf opt of the object fallback. will add tests where there appear to be gaps. (but I don't think DataFrame column names or Index/Series names is one of those gaps)

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants