pandas select some rows code example
Example 1: how to get a row from a dataframe in python
df.iloc[[index]]
Example 2: select only some rows pandas
df.loc[df['column_name'].isin(some_values)]
df.iloc[[index]]
df.loc[df['column_name'].isin(some_values)]