retrieve row from dataframe based on index python code example Example: filter dataframe with a list of index df[df.index.isin([1,3])]