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

DataFrame properties

One of the benefits of DataFrames is that they allow us to work with big datasets much more easily than with arrays. These datasets can be very long and have lots of rows, and they can be very wide with lots of columns.

In this chapter, you will work with the "books.csv" dataset. Each row corresponds to information about a single book and its ratings on a book review website.

In this exercise, you'll explore the dataset to familiarize yourself with its columns and length. You'll analyze it in more depth later.

The DataFrames and CSV packages have been imported for you with the using keyword.

Bu egzersiz, kursun bir parçasıdır

Introduction to Julia

Kursa Göz Atın

Egzersiz talimatları

  • Load the "books.csv" dataset into a DataFrame.
  • Use the names() function to print the column names of the dataset.
  • Use the size() function to print the number of rows and columns in the dataset.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Load the book review data
df_books = DataFrame(____.____(____))

# Print column names
println(____(____))

# Find number of rows and columns
println(____(____))
Kodu Düzenle ve Çalıştır