EduFlow
Python for Data Analysis

Checkpoint: Analysis: Group, Join, Reshape

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

You left-merge order_items (3,991 rows) with returns on order_item_id with indicator=True. 198 rows are both. What do the left_only rows represent?

Question 2 of 5

sales.pivot_table(index="channel", columns="year", values="revenue") returns numbers far smaller than the revenue totals. Why?

Question 3 of 5

orders.resample("ME")["revenue"].sum() raises TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex. What is the fix?

Question 4 of 5

Merchandising wants products split into five groups with the same number of products in each, by price. Which call fits?

Question 5 of 5

Which call returns revenue per country with country as an ordinary column rather than the index?

5 questions unanswered