Data Science, Python, Pandas.
df.loc[ df['referrer_type'].isin(['link']), ['coming_from','article', 'n'] ]\ .groupby([‘coming_from’, ‘article’])\ .sum()\ .sort_values(by=’n’, ascending=False) And the resulting table: Pandas + Dask Now let’s recreate this data using the Dask library. from dask import dataframe as dd dfd =