selecting ing specific rows of a columns in pandas code example Example: select specific rows from dataframe in python select_color = df.loc[df['Color'] == 'Green']