Seksjon 1. Kapittel 6
single
Challenge: Summarize Campaign Performance
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår