Write a pandas function that groups matching columns traffic_source and region and outputs the values of the third column source_type for them
def get_source_type(traffic_source, region): return df[(df.traffic_source == traffic_source) & (df.region == region)].source_type.values get_source_type('twitter', 'east')