-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Add missing API item to reference docs #48455
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
Conversation
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.
looks good, added couple of comments
Period (time spans) :class:`PeriodDtype` :class:`Period` :ref:`api.arrays.period` | ||
Intervals :class:`IntervalDtype` :class:`Interval` :ref:`api.arrays.interval` | ||
Nullable Integer :class:`Int64Dtype`, ... (none) :ref:`api.arrays.integer_na` | ||
Nullable Float :class:`Float64Dtype`, ... (none) :ref:`api.arrays.float_na` |
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.
This is the only line you added, right? With the wider column is not immediately clear in the diff.
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.
Correct, since :class:`Float64Dtype`, ...
was wider than the section boundaries (===...
) everything needed to shift.
Also renamed Boolean (with NA)
to Nullable Boolean
to match the int and float titles.
.. autosummary:: | ||
:toctree: api/ | ||
:template: autosummary/class_without_autosummary.rst | ||
|
||
arrays.FloatingArray | ||
|
||
.. autosummary:: | ||
:toctree: api/ | ||
:template: autosummary/class_without_autosummary.rst | ||
|
||
Float32Dtype | ||
Float64Dtype | ||
NA |
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.
Do you know what's the advantage of having this in two separate autosummaries? I see you used the same format of the rest, and it's fine, but I wonder if this is just to allow different sizes of the columns of the two tables, or if there is anything else.
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.
I am not immediately sure. I suppose different column sizes was the reason in the past but I was just using the same formatting as other sections
pandas/core/groupby/generic.py
Outdated
Returns | ||
------- | ||
NamedTuple | ||
|
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.
If I'm not missing anything, I don't think we should have a Returns
section in the docstring of a class (only for functions). Is numpydoc complaining if this is missing?
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.
Ah thanks good call. Yeah I think I don't need to add this. Will remove.
pandas/core/groupby/generic.py
Outdated
Parameters | ||
---------- | ||
column : Hashable | ||
Column label in the DataFrame to apply aggfunc |
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.
Column label in the DataFrame to apply aggfunc | |
Column label in the DataFrame to apply aggfunc. |
.. autosummary:: | ||
:toctree: api/ | ||
:template: autosummary/class_without_autosummary.rst | ||
NaT |
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.
I think you need a blank line between directive options and the values, I think this is why the CI is failing.
.. autosummary:: | ||
:toctree: api/ | ||
:template: autosummary/class_without_autosummary.rst | ||
NaT |
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.
Blank line
Will merge in a few days if no further comments. |
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.
lgtm, thanks @mroeschke
* DOC: Add missing API item to reference docs * Address review * Fix formatting
Float32/64Dtype
&arrays.FloatingArray
NaT
&NA
lreshape
set_eng_float_format
NamedAgg