Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Summarize Campaign Performance | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Section 1. Chapitre 6
single

single

bookChallenge: Summarize Campaign Performance

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

Build a function to process a DataFrame containing marketing campaign data and produce a summary report. The summary must include conversion rate and ROI for each campaign, and clearly indicate which campaign has the highest conversion rate.

  • Calculate the conversion rate for each campaign as conversions divided by clicks.
  • Calculate ROI for each campaign as (conversions * 100 - spend) divided by spend.
  • Add columns for the conversion rate and ROI to the DataFrame.
  • Add a column to indicate which campaign has the highest conversion rate.
  • Print the summary table with all columns, including the indicator for the top campaign.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt