Skip to main content
100%

Gist ba350b90fcee35acc38ff961c4eec95a

✓ Published0🌍 Public
AArizonaTay
Last edited Dec 27, 2021
Created on Dec 27, 2021

Two horizontal bar charts display the percentage of sponsored posts by industry and by country, using Plotly Express’s `px.bar` after grouping data with pandas `groupby` and `apply`. Each chart sorts its top 20 categories descending by sponsored share, with the industry chart titled “Sponsored Post(%) by Industry” and the country chart “Sponsored Post(%) by Country.” The code computes sponsored counts per category from the `inf_df` DataFrame, merges sponsored and non-sponsored totals, then calculates percentages for visualization. The source data appears to originate from a dataset of influencer posts, with plots rendered as static, interactive HTML figures.

AI-generated description

Similar vizzes