pandas.Series.str.extract — pandas 1.3.5 documentation
pandas.pydata.org › pandaspandas.Series.str.extract. ¶. Extract capture groups in the regex pat as columns in a DataFrame. For each subject string in the Series, extract groups from the first match of regular expression pat. Regular expression pattern with capturing groups. Flags from the re module, e.g. re.IGNORECASE, that modify regular expression matching for things ...