[Solved] how to match string with dataframe in python [closed]


Perhaps you mean sth like this:

words=" ".join(listvalue).upper().split()
idx = df.value.str.upper().isin(words)

In: df[idx]
Out: 
    variable     value
48    Income    salary
81  Shopping  clothing

13

solved how to match string with dataframe in python [closed]