how to select a subset of dataframes wtih 8000 rows and a value code example Example: how to get a row of a dataframe with subset columns in python df.iloc[1:3, 5:7]