MulaiMulai sekarang secara gratis

Confirming house ads error

Now that you've created a DataFrame that checks whether users see ads in the correct language let's calculate what percentage of users were not being served ads in the right language and plot your results.

Latihan ini adalah bagian dari kursus

Analyzing Marketing Campaigns with pandas

Lihat Kursus

Petunjuk latihan

  • Add a pct column to language_check_df which divides the count where language is correct by the row sum extracted using the .sum() method.
  • Make a line plot with the date as the x-axis and the pct column as the y-axis and show your results.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Divide the count where language is correct by the row sum
language_check_df['pct'] = ____/____

# Plot and show your results
plt.plot(____, ____)
____
Edit dan Jalankan Kode