Gist 2c4db01f16e82a0746be7819b4d925d5
✓ Published0🌍 Public
AArizonaTay
Last edited Dec 27, 2021
Created on Dec 27, 2021
This example visualizes influencer engagement by computing an engagement rate from comment and like counts relative to follower totals, using pandas to add and inspect the new column. It then extracts URLs from post captions with a regex pattern, storing them in a new “Links” column to identify which posts contain external links. The code relies on pandas for data manipulation and the `str.extract` method for pattern matching, while the head and describe functions provide a quick statistical summary. The visualization focuses on showing how engagement varies with link presence, though no charting library is used in the provided snippet.
AI-generated description