BaşlayınÜcretsiz Başlayın

And the Oscar for best director goes to ... <NA>

You're working on a sample of the Netflix dataset pre-loaded as director_df. This time, the data frame contains just the directors and movie titles. Your goal is to identify the directors who created the most movies. Since the director column contains multiple names, you'll first separate its values over multiple rows and then count the directors.

Since you don't want movies without directors polluting your overview, you'll apply the drop_na() function.

The dplyr package has been pre-loaded for you.

Bu egzersiz

Reshaping Data with tidyr

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

director_df %>% 
  # Spread the director column over separate rows
  ___
Kodu Düzenle ve Çalıştır