Suppose I have a DataFrame with one column having values like ABC_S22_F1, ABD_P23_H3,ABE_Q25_K3.
When I do df['col1'] = df['Column_Name'].str.extract('(\d+)').astype(int), I get the first instance of Integer (i.e 22,23,25) in new column col1. I want col2 to have second instance of integer having values 1 3 3.