Inspect the DataFrame

#1 · 1 of 50Free sample
Question

Inspect the DataFrame

We have a DataFrame named df containing columns [sepal_length, sepal_width, petal_length, petal_width, species]. Print the first 5 rows to get an initial look at the data. Changes to df in this task do not persist beyond it.
solution.py
Loading editor…
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
All exercises in Python: Exploratory Data Analysis