Skip to content

ENH: More convenient regex? #4685

@danielballan

Description

@danielballan

How about circumventing annoying match objects by providing an additional, somewhat redundant string method?

s.str.extract(pattern)

as a shortcut for

s.str.match(pattern).str.get(0)

If the pattern contains multiple groups, a DataFrame should be returned. Thoughts? Maybe @hayd would be into this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions