Skip to content

Duplicate matplotlib import in line 2 and redundant set_title() call in line 22 #213

@AldoOmarAndres

Description

@AldoOmarAndres

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions