Wyodrębnij liczbę całkowitą ze sznurka w pandy

df['B'].str.extract('(\d+)').astype(int)
Cooperative Civet