how to create sub dataframes, appending rows if some column value is included in a list? I have a dataframe like this