Series.str.extract(pat, flags=0, expand=None) [source]
For each subject string in the Series, extract groups from the first match of regular expression pat. New in version 0.13.0. Parameters:
pat : string Regular expression pattern with capturing groups flags : int, default 0 (no flags) re module flags, e.g. re.IGNORECASE .. versionadded:: 0.18.0 expand : bool, default False If True, return DataFrame. If False, return Series/Index/DataFrame. Returns:
DataFrame with one row for eac