EduFlow
Python for Data Analysis

Checkpoint: pandas Foundations

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

After orders = pd.read_csv("orders.csv"), orders["order_date"].dt.month raises AttributeError: Can only use .dt accessor with datetimelike values. What is the fix?

Question 2 of 5

What does products.loc[products["unit_price"] > 100, "name"] return?

Question 3 of 5

Which line raises the price of active products by 5% and reliably updates products itself?

Question 4 of 5

What is the result of s1 + s2?

Python
s1 = pd.Series([10, 20], index=["a", "b"])
s2 = pd.Series([1, 2], index=["b", "c"])
Question 5 of 5

You want every order from the web or the mobile app. Which filter is the clearest correct choice?

5 questions unanswered