Filter dataframe rows if value in column is in a set list of values [duplicate]

Use the isin method:

rpt[rpt['STK_ID'].isin(stk_list)]

Leave a Comment