df.loc[row_indexer,column_indexer] code example Example: df.loc a list of index df[df.index.isin([1,3])]