Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: explore data

DataFrames, reading CSV files, filters, sorting and missing values: let's check your pandas basics. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.What does sales.shape return for a table of 120 rows and 5 columns?

    One answer

  2. 2.A quantity column has dtype object. What does it probably indicate?

    One answer

  3. 3.Which expression keeps the sales from Thiès of more than 50 kg?

    One answer

  4. 4.Which statements about missing values (NaN) are true? (several answers)

    Several answers possible

  5. 5.Complete to sort the sales from the largest to the smallest quantity.

    Complete the code

    ventes.sort_values("kg", ascending=_____)
  6. 6.Why write sales["kg"] * sales["price_kg"] rather than a for loop?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.