Skip to content

API: Series.str.match == extract? #5075

Closed
@jreback

Description

@jreback

This is the whatsnew example. I think for compat, the 3rd entry should be (np.nan, 3) ?

In [1]: Series(['a1', 'b2', '3']).str.match('(?P<letter>[ab])?(?P<digit>\d)')
Out[1]: 
0       (a, 1)
1       (b, 2)
2    (None, 3)
dtype: object

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignStringsString extension data type and string data

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions