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

Classic books

Time to use your new DataFrame skills to analyze the books dataset one last time.

You are working for a publisher that wants to spotlight classic books this month. Can you analyze the DataFrame df_books to find the top-rated books published before 1900?

df_books is available in your environment.

Bu egzersiz

Introduction to Julia

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

Egzersiz talimatları

  • Filter the DataFrame to rows where the integer in the original_publication_year column is less than 1900.
  • Sort the df_old_books DataFrame by the average_rating column, sorting from high to low.
  • Print the first five rows of the DataFrame to show the top-rated old books.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Filter to books which were published before 1900
df_old_books = ____(row -> ____, ____)

# Sort these books by rating
df_old_books_sorted = ____(____, "____", rev=____)

# Print the 5 top-rated old books
println(____)
Kodu Düzenle ve Çalıştır