Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data/docs] Rewrote docstring for AggregateFn, including a usage example #50345

Merged
merged 5 commits into from
Feb 11, 2025

Conversation

crypdick
Copy link
Contributor

@crypdick crypdick commented Feb 8, 2025

Why are these changes needed?

The current docstring for AggregateFn is very poor. This still does not adequately explain how accumulate_block works, but it is a step in the right direction. I struggled to figure out how this class works while writing a blog post and I am sharing my learnings back into the docs.

Related issue number

Closes #9335 (opened July 2020!)
Relates to #10983

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@crypdick crypdick requested a review from a team as a code owner February 8, 2025 07:32
@richardliaw richardliaw changed the title Rewrote docstring for AggregateFn, including a usage example [data/docs] Rewrote docstring for AggregateFn, including a usage example Feb 8, 2025
* fixed whitespace
* removed redundant typing
* changed to testcode doc flag

Signed-off-by: Ricardo Decal <[email protected]>
@crypdick
Copy link
Contributor Author

ty for the review @richardliaw ! feedback addressed

Signed-off-by: Ricardo Decal <[email protected]>
@richardliaw richardliaw added docs An issue or change related to documentation go add ONLY when ready to merge, run all tests labels Feb 11, 2025
@richardliaw richardliaw self-assigned this Feb 11, 2025
@pcmoritz pcmoritz enabled auto-merge (squash) February 11, 2025 19:56
@pcmoritz pcmoritz merged commit 8f6299e into master Feb 11, 2025
6 checks passed
@pcmoritz pcmoritz deleted the docs/ray-data-aggregatefn branch February 11, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs An issue or change related to documentation go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data] built-in reduceByKey()
3 participants