I have a dataframe from which I want to create a list of names that fit a certain characteristics. For example, this is the dataframe:
name    age     hair color
Tim     32  black
Alex    29  red
Jerry   25  brown
Molly   30  black
Susan   27  black
How could I make a list of only the names that have black hair?
 
    