Skip to content

Fix NumPy tutorial notebook typos and examples - #349

Open
dev-javedali wants to merge 7 commits into
codebasics:masterfrom
dev-javedali:fix/numpy-tutorial-typos
Open

Fix NumPy tutorial notebook typos and examples#349
dev-javedali wants to merge 7 commits into
codebasics:masterfrom
dev-javedali:fix/numpy-tutorial-typos

Conversation

@dev-javedali

Copy link
Copy Markdown

Summary

This pull request fixes typos and improves examples in the NumPy tutorial notebooks.

Changes

  • Fixed spelling and wording mistakes.
  • Corrected incorrect or unclear examples.
  • Improved the readability of the affected tutorial content.
  • No major functionality changes were made.

Testing

The updated notebooks were reviewed to ensure the corrections are clear and consistent.

Thank you for reviewing this contribution.

The second subplot call was commented out along with a leftover line that called set_title() on a plain list, which isn't valid. Uncommented and fixed the expense subplot, added titles for both, and added tight_layout so they don't overlap.
80-100 was listed for both Normal and Diabetic. Based on the bins used later in the notebook ([80,100,125,150]), the diabetic range should be 125-150.
Title read 'US Technolog Stocks' (missing y), and the horizontal bar chart heading closed with <h3> instead of </h3>.
Several notebooks had align=center, style=... with an invalid comma between attributes, inconsistent with the other notebooks in the repo that don't have it.
Fixed a typo in the filename (tutorail -> tutorial) and added PEP8 spacing around the array elements.
Removed the unused 'import sys' statement and added PEP8 spacing around operators, commas, and assignments (e.g. a1=np.arange -> a1 = np.arange, x+y -> x + y).
Heading read 'Fortan style ordering', missing the 'r'. Corrected to 'Fortran style ordering'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant