시작하기무료로 시작하기

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.

이 연습은 강의의 일부입니다

Introduction to Julia

강의 보기

연습 안내

  • 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.

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# 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(____)
코드 편집 및 실행