Skip to content

Conversation

@prakhar14-op
Copy link
Contributor

@prakhar14-op prakhar14-op commented Oct 30, 2025

Hi, thanks for submitting a PR to Codecademy Docs!
Please fill out all fields below to ensure your PR is reviewed quickly.

*IMPORTANT

If you would like to receive credit for your contribution to an entry, make sure you have your Codecademy user profile linked to your GitHub account:

  1. Go to your Codecademy dashboard.
  2. Click your profile image in the top-right and then choose "Profile".
  3. Then click "Edit Profile".
  4. In the "GitHub Username" field, add your username (without the @).
  5. Click "Save Changes"

Of course, you can opt not to do this and be listed as an "Anonymous contributor". instead. :)
-->

Proposed Changes

This PR introduces a new term entry documenting the numpy.ndarray.cumprod() method, following all content and style guidelines.

  • New File: Created content/numpy/concepts/ndarray/terms/cumprod/cumprod.md.
  • Content: The entry includes the Description, Syntax, Example, and a complete Codebyte block demonstrating the method.

Acceptance Checklist:

Item Status Compliance
Fixes Issue # Yes Fixes #7862
Template Adherence Yes Follows Term Entry Template structure.
Required Sections Yes Includes Definition, Syntax (Parameters & Return Value), Example, and Codebyte.

Codebyte Example

import numpy as np # Create a 2D array arr = np.array([[1, 2, 3], [4, 5, 6]]) print(f"Original Array:\n{arr}") # Cumulative product across rows (axis=1) result_rows = arr.cumprod(axis=1) print(f"\nCumprod (Across Rows/Axis=1):\n{result_rows}") # Output: [[ 1, 2, 6], [ 4, 20, 120]] 
@prakhar14-op prakhar14-op changed the title [Term Entry] Python NumPy - ndarray: cumprod() #7871 [Term Entry] Python NumPy - ndarray: cumprod() #7862 Oct 30, 2025
@mamtawardhani mamtawardhani self-assigned this Oct 30, 2025
@prakhar14-op
Copy link
Contributor Author

Hi @mamtawardhani I have done this issue ,please check

@mamtawardhani
Copy link
Collaborator

Hey @prakhar14-op, this PR doesn't match the Codecademy Standards. Could you please refer to the other PRs and then fix this one based on those PRs? Please let me know when you have finished making the changes. 😄

@prakhar14-op
Copy link
Contributor Author

Hey @prakhar14-op, this PR doesn't match the Codecademy Standards. Could you please refer to the other PRs and then fix this one based on those PRs? Please let me know when you have finished making the changes. 😄

ok i will fix these issue and also
please check my pr on Python NumPy - ndarray: cumprod()
#7862

@mamtawardhani
Copy link
Collaborator

Its the same PR that needs to be fixed @prakhar14-op

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! 🚀

@mamtawardhani mamtawardhani added python Python entries new entry New entry or entries status: review 1️⃣ completed numpy NumPy entries status: ready for next review hacktoberfest-accepted Indicates the PR was approved, merged, and pertains to Hacktoberfest and removed status: waiting for author labels Nov 3, 2025
@Sriparno08 Sriparno08 self-assigned this Nov 3, 2025
@Sriparno08 Sriparno08 added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Nov 3, 2025
Copy link
Collaborator

@Sriparno08 Sriparno08 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, @prakhar14-op!

@Sriparno08 Sriparno08 merged commit cb4a663 into Codecademy:main Nov 4, 2025
7 checks passed
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

👋 @prakhar14-op
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/cumprod

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.

@Sriparno08 Sriparno08 added status: review 2️⃣ completed and removed status: under review Issue or PR is currently being reviewed labels Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

3 participants