pandas.core.strings.StringMethods.extract¶
- StringMethods.extract(pat, flags=0, **kwargs)¶
Find groups in each string using passed regular expression
Parameters : pat : string
Pattern or regular expression
flags : int, default 0 (no flags)
re module flags, e.g. re.IGNORECASE
Returns : extracted groups : Series (one group) or DataFrame (multiple groups)
Notes
Compare to the string method match, which returns re.match objects.