get row by list of index values pandas code example Example: filter dataframe with a list of index df[df.index.isin([1,3])]