Data Science, Python, Pandas.
(dfd[‘referrer_type’].isin([‘external’])) & (dfd[‘coming_from’].isin([‘other-search’])), [‘article’, ‘n’] ] Since we only need to store the top 40 results, we can simply store them directly in Pandas dataframe: external_searches_dask = external_searches_dask.nlargest( 40, ‘n’).compute() which