Aan de slagGa gratis aan de slag

Visualizing daily marketing reach

In the previous exercise, you created a daily_users DataFrame, which contained the number of users who subscribed each day. While this was a great first step, it is challenging to interpret daily trends by looking at a table. To make it easier for you and your business stakeholders to notice subscriber trends, you will visualize your results using a line plot.

Deze oefening maakt deel uit van de cursus

Analyzing Marketing Campaigns with pandas

Cursus bekijken

Oefeninstructies

  • Use the .plot() method to visualize the results of date_served.
  • Add the title 'Daily users' and the y-axis label 'Number of users'.
  • Rotate the x-axis labels by 45 degrees.
  • Display the plot.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Plot daily_users
daily_users.____

# Include a title and y-axis label
plt.____('____')
plt.____('____')

# Rotate the x-axis labels by 45 degrees
plt.____(____)

# Display the plot
plt.____()
Code bewerken en uitvoeren