Description
In the ch09.ipynb notebook, there are two minor redundancies that could be cleaned up for clarity and efficiency:
- Duplicate import of
matplotlib.pyplot in line 2: The module is imported twice unnecessarily.
- Redundant
set_title() call in line 22: The same method is called twice on the same axis object, which may cause confusion or override the intended title.
Suggested Fix
- Remove one of the
matplotlib.pyplot imports.
- Consolidate or remove the repeated
set_title() call to ensure the intended title is displayed.
File
ch09.ipynb
Reference
Line 21:
...
ax.set_title("Important dates in the 2008–2009 financial crisis")
Line 22:
ax.set_title("Important dates in the 2008–2009 financial crisis")