-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[doc][data] auto-gen GroupedData api #46925
Conversation
:toctree: doc/ | ||
|
||
aggregate.AggregateFn | ||
.. include:: ray.data.grouped_data.GroupedData.rst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@can-anyscale not blocking since this is already an issue, but is there a way to hide the constructor for GroupedData
? It shouldn't be exposed to the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol i see, i think so yes - but without a constructor, how users can create an object to invoke the its public methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users should call the Dataset.groupby()
method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got you
@@ -32,7 +35,6 @@ def __repr__(self) -> str: | |||
return "T" + self.data.__repr__() | |||
|
|||
|
|||
@PublicAPI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bveeramani: i remove this annotation at the class level; and if this is missing, we assume its constructor is private
So we omit the constructor in the doc now, let me know if you like it, thankks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Signed-off-by: can <can@anyscale.com>
documentation Signed-off-by: can <can@anyscale.com>
Use
_autogen
to auto-generateGroupedData
api documentation, so that we don't need to enumerate the list of public APIs anymore. Note that in the new look, constructor is un-folded by default. This is to be consistent with how we document classes elsewhere (e.g. https://docs.ray.io/en/latest/data/api/dataset.html)readthedoc is currently broken on master which is unrelated to this change
Before:
After:
Test: