Hey Guys I am searching for a fast/efficient way to extract keywords (defined in a list) from a String (in a Dataframe) without being case sensitive or dependent on " " chars:
keys = ['I', 'love', 'Cookies']
String from df= "xxxxxxxxIxx xx cookies"
result should by either ['I'] or ['I', 'Cookies']
I am currently using f"({'|'.join(keys)}) which is case sensitive. What would you recommend for long strings in even longer dataframes :)
Thanks in advance