get rows from dataframe based on index code example
Example 1: filter dataframe with a list of index
df[df.index.isin([1,3])]
Example 2: pandas return specific row
df.iloc[1] # replace index integer with specific row number
df[df.index.isin([1,3])]
df.iloc[1] # replace index integer with specific row number