i have this dataframe with 1 column in python and i need to extract out the 2 numbers that come after a "#" character or the string "door". Example of this would be
String_column
#12-123,456
mom101, door 101, pop10
i only want the 2 numbers that come after the # sign or the word door. how would i go about doing this. This is what i currently have but i think this only takes in the numbers that come after the # key
import pandas as pd
df = pd.read_csv(data.csv)
df['qwerty'] = df.string_column.str.extract(
r'(?<=#)(\d+)', expand=False
).fillna(0).astype(int)