I am working through the Inner Merge III with Python, specifically the exercise with Cool T-Shirts. Here is the question:
Cool T-Shirts Inc. thinks that they have more revenue in months where they sell more women’s t-shirts.
Select the rows of
revenue is greater than
women is greater than
Save your answer to the variable
I have two proposals of which neither works:
results = all_data[all_data.revenue > all_data.target and all_data.women > all_data.men]
results = all_data[all_data.revenue > all_data.target] and all_data[all_data.women > all_data.men]
Could you please give me a nudge in the right direction?