pandas.DataFrame.take

DataFrame.take(indices, axis=0, convert=True)

Analogous to ndarray.take, return DataFrame corresponding to requested indices along an axis

indices : list / array of ints axis : {0, 1} convert : convert indices for negative values, check bounds, default True

mainly useful for an user routine calling

taken : DataFrame