pd get rows where value in list code example Example: pandas row where value in list df[df['A'].isin([3, 6])]