I am trying to find median revenue in 2013 for US, France and Spain. My pandas dataframe looks like
I am using the following code
df[(df.year == 2013) & (df.country == ['US', 'FR', 'ES'])]
and getting this error - ValueError: Lengths must match to compare