Error in Module 5 C3M5L2?

I’m working on the practice lab and the instructions are as follows in the second part of step 5:

  1. Filter all the rows before March 2020
  2. Plot the percent change once again
  3. Add a horizontal line at y=0 for clarity (already implemented).

my lineplot does not look like the expected answer. When I look at the solution cell, it lists the following:

[spoiler]
# filter the series
cancel_pct_change_filtered = cancel_pct_change[:"2020-03-01"]

# plot the result
sns.lineplot(cancel_pct_change)

# Add a horizontal line at y=0
plt.axhline(y=0, color='grey', linestyle='--', label="y=0")
[/spoiler]

Shouldn’t we be plotting cancel_pct_change_filtered instead of cancel_pct_change? Am I missing something? I think it’s a mistake because it’s the same lineplot we did in the previous cell, but I may be misunderstanding what is being asked of me.

P.S. The next cells solution also seems to have a small error. When looking to filter for results more than 50 percent, I get the correct result when I filter for > .50. The solution cell lists 50 without the decimal, and when I run that code, I get a filtered df with no rows in it.

Hi @pfister75

Thank you for your question.

The solution seems correct for the question asked as it is just asking “Plot the percent change once again” which would mean
sns.lineplot(cancel_pct_change)

For the next step, I agree the solution should be

df_per_month[cancel_pct_change>0.5] 

instead of

df_per_month[cancel_pct_change>50]

cc @chris.favila

Hi, and thank you for reporting! We’ll look into this!