select certain values with loc code example
Example 1: select specific rows from dataframe in python
select_color = df.loc[df['Color'] == 'Green']
Example 2: how to get a row of a dataframe with subset columns in python
df.iloc[1:3, 5:7]
select_color = df.loc[df['Color'] == 'Green']
df.iloc[1:3, 5:7]