LoslegenKostenlos loslegen

Daily marketing reach by channel

In this exercise, you'll determine how many users are seeing the marketing assets each day. This is crucial to understand how effective our marketing efforts have been over the past month.

You'll use .groupby() and .nunique() to calculate daily users.

Diese Übung ist Teil des Kurses

Analyzing Marketing Campaigns with pandas

Kurs anzeigen

Anleitung zur Übung

  • Group the marketing DataFrame by 'date_served' and count the number of unique user IDs present in the user_id column.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Group by date_served and count number of unique user_id's
daily_users = ____.____(['____'])['____'].____()

# Print head of daily_users
print(daily_users.____)
Code bearbeiten und ausführen