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

1. Introduction to pandas

1.6 Chapter 1 test

Highlights & notes

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

    Bookmarks

    Bookmark a lesson to see it here.

      Nine questions on pandas basics: three Easy, three Medium and three Hard.

      Question 1 · Easy

      How is pandas usually imported?

      Question 2 · Easy

      Which pandas object is one column of values?

      Question 3 · Easy

      What does df.shape show?

      Question 4 · Medium

      s = pd.Series([4, 6, 8]). What is s.mean()?

      Question 5 · Medium

      s = pd.Series([5, 9], index=["x", "y"]). What is s["y"]?

      Question 6 · Medium

      df = pd.DataFrame({"a": [1, 2, 3]}). What is len(df)?

      Question 7 · Hard

      s = pd.Series([1, 2, 3]). What does (s + 10).tolist() give?

      Question 8 · Hard

      df = pd.DataFrame({"a": [1, 2], "b": [3, 4]}). What is df.shape?

      Question 9 · Hard

      Why is s * 2 on a Series faster than a Python loop over a list?

      Key takeaways

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

      Lesson 6 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 1 test
      Save your progress free for 1 month. Start free · Log in