Skip to content

Conversation

@Ananya44444
Copy link
Contributor

Description

This PR adds a new entry for the .dot() method of a NumPy ndarray.

The new file is located at content/numpy/concepts/ndarray/terms/dot/dot.md.

It covers the use of the method for both matrix multiplication (2D arrays) and the inner product (1D arrays), including syntax, a full example, and a compilable Codebyte.

Issue Solved

Issue #7827

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented Oct 24, 2025

CLA assistant check
All committers have signed the CLA.

@mamtawardhani mamtawardhani self-assigned this Oct 25, 2025
Updated the dot product method documentation to clarify its behavior for different dimensional arrays and improved the syntax and example sections.
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for a second review! 🚀

Added return value details for the dot product operation.
@mamtawardhani mamtawardhani linked an issue Oct 25, 2025 that may be closed by this pull request
3 tasks
@avdhoottt avdhoottt added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Oct 27, 2025
Copy link
Collaborator

@avdhoottt avdhoottt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@avdhoottt avdhoottt added hacktoberfest status: review 2️⃣ completed hacktoberfest-accepted Indicates the PR was approved, merged, and pertains to Hacktoberfest and removed status: under review Issue or PR is currently being reviewed labels Oct 29, 2025
@avdhoottt avdhoottt merged commit c88ad7b into Codecademy:main Oct 29, 2025
7 checks passed
@github-actions
Copy link

👋 @Ananya44444
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/numpy/ndarray/dot

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

prakhar14-op pushed a commit to prakhar14-op/docs that referenced this pull request Oct 29, 2025
* added dot.md

* Enhance documentation for ndarray.dot() method

Updated the dot product method documentation to clarify its behavior for different dimensional arrays and improved the syntax and example sections.

* Update dot.md with return value information

Added return value details for the dot product operation.

* Apply suggestion from @avdhoottt

* Apply suggestion from @avdhoottt

---------

Signed-off-by: Prakhar Sharma <prakharsharma_mc24b06_001@dtu.ac.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest hacktoberfest-accepted Indicates the PR was approved, merged, and pertains to Hacktoberfest new entry New entry or entries numpy NumPy entries python Python entries status: review 1️⃣ completed status: review 2️⃣ completed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] Python NumPy - ndarray: dot()

4 participants