I am trying to make a data frame from a smaller data frame using this code:
seed_request = [(inventory.location == 'Brooklyn') & (inventory.product_type == 'seeds')]
print(seed_request)
This is giving me a new data frame with either True or False depending on if these conditions are met. How do I make it instead give me a data frame with the rows that satisfy these conditions?