Bắt đầu ngayBắt đầu miễn phí

Literary analysis

Let's look at the book rating data again. You've been tasked with finding out more information about this data that you couldn't calculate before. You need to find the total number of ratings used to create this dataset and how old is the oldest book.

The DataFrame df_books is available in your environment.

Bài tập này là một phần của khóa học

Introduction to Julia

Xem khóa học

Hướng dẫn bài tập

  • Use the sum() function to find the total of the ratings_count column.
  • Use the minimum() function to find the minimum value in the original_publication_year column.

Bài tập tương tác thực hành trực tiếp

Hãy thử làm bài tập này bằng cách hoàn thành đoạn mã mẫu này.

# Find the total number of ratings
total_reviews = ____(____)

# Find the earliest publication year
earliest_year = ____(____)

println("Total number of reviews is $total_reviews")
println("Earliest year of publication is $earliest_year")
Chỉnh sửa và Chạy Mã