pandas.Series.str.extract — pandas 0.18.1 documentation (original) (raw)
DataFrame with one row for each subject string, and one column for
each group. Any capture group names in regular expression pat will
be used for column names; otherwise capture group numbers will be
used. The dtype of each result column is always object, even when
no match is found. If expand=True and pat has only one capture group,
then return a Series (if subject is a Series) or Index (if subject
is an Index).