I’m working on the practice lab and the instructions are as follows in the second part of step 5:
- Filter all the rows before March 2020
- Plot the percent change once again
- 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.