Back to Chapters
Chapter Progress: 0 %0 / 7 Lessons Read
‹

2. Reading and inspecting data

2.7 Chapter 2 test

Highlights & notes

Select lesson text to highlight it, or tap Add note.

    Bookmarks

    Bookmark a lesson to see it here.

      Nine questions on reading and inspecting data: three Easy, three Medium and three Hard.

      Question 1 · Easy

      Which method shows the last rows of a DataFrame?

      Question 2 · Easy

      What does the first line of a CSV usually become?

      Question 3 · Easy

      Which shows the data type of every column?

      Question 4 · Medium

      How many rows does df.head(3) show?

      Question 5 · Medium

      What does NaN mean in a DataFrame?

      Question 6 · Medium

      A column holds 250, 400 and NaN. What does mean() give?

      Question 7 · Hard

      df.shape is (0, 4) after read_csv. What does that tell you?

      Question 8 · Hard

      Which line counts the missing values in the amount column?

      Question 9 · Hard

      A price column reads as object because one value is "1,200". What fixes the maths?

      Key takeaways

      Score 7 or more out of 9 before moving on. If you missed a question, reread its lesson and try again.

      Lesson 13 of 13

      Save your progress

      Start free and your progress, code and notes stay saved. Free for 1 month, no card needed.

      Start free Log in
      PreviousChapter 2 test
      Save your progress free for 1 month. Start free · Log in