Data Science, Python, Pandas.
df_article[‘n’].sum() l = df_article.loc[ df_article[‘referrer_type’].isin([‘link’]), ‘n’].sum() return round((l*100)/a, 2) And let’s test in on one of the articles, say one with the title ”Jehangir_Wadia”: >>> visitors_clicked_link_pandas(df, ‘Jehangir_Wadia’) 81.1 Which suggests that ~81% of the