I have a list of values that I would like to use to select rows in a dataframe. The trick is I would like to select any row where the list value is in the row. Example:
index color shape
1 blue star
2 red square
3 yellow circle
My list would be
list_vals = ['sq', 'blu']
I would like to select the rows
index color shape
1 blue star
2 red square