SyntaxFix
Write A Post
Hire A Developer
Questions
Use the isin method:
isin
rpt[rpt['STK_ID'].isin(stk_list)]