Data Science, Python, Pandas.
That one is easy. All we need to do is to filter out the rows that contain the ‘external’ referrer_type and ‘other-search’ coming_from values: external_searches = df.loc[ (df[‘referrer_type’].isin([‘external’])) & (df[‘coming_from’].isin([‘other-search’])), [‘article’, ‘n’] ] We then only have to