Data Science, Python, Pandas.
statements in the function, like that: def visitors_clicked_link_dask(dataframe, article): df_article = dataframe.loc[dataframe[‘article’].isin([article])] a = df_article[‘n’].sum().compute() l = df_article.loc[ df_article[‘referrer_type’].isin([‘link’]), ‘n’].sum().compute() return