select specific pandas rows code example
Example 1: select specific rows from dataframe in python
select_color = df.loc[df['Color'] == 'Green']
Example 2: pandas return specific row
df.iloc[1] # replace index integer with specific row number
select_color = df.loc[df['Color'] == 'Green']
df.iloc[1] # replace index integer with specific row number