Skip to content

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

Merged
merged 5 commits into from
Sep 13, 2022

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Sep 8, 2022

  • Float32/64Dtype & arrays.FloatingArray
  • NaT & NA
  • lreshape
  • set_eng_float_format
  • NamedAgg

@mroeschke mroeschke added the Docs label Sep 8, 2022
Copy link
Member

@datapythonista datapythonista 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, 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`
Copy link
Member

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.

Copy link
Member Author

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.

Comment on lines +442 to +454
.. autosummary::
:toctree: api/
:template: autosummary/class_without_autosummary.rst

arrays.FloatingArray

.. autosummary::
:toctree: api/
:template: autosummary/class_without_autosummary.rst

Float32Dtype
Float64Dtype
NA
Copy link
Member

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.

Copy link
Member Author

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

Comment on lines 124 to 127
Returns
-------
NamedTuple

Copy link
Member

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?

Copy link
Member Author

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.

Parameters
----------
column : Hashable
Column label in the DataFrame to apply aggfunc
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Blank line

@mroeschke mroeschke added this to the 1.6 milestone Sep 9, 2022
@mroeschke
Copy link
Member Author

mroeschke commented Sep 13, 2022

Will merge in a few days if no further comments.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @mroeschke

@mroeschke mroeschke merged commit f79ee8a into pandas-dev:main Sep 13, 2022
@mroeschke mroeschke deleted the doc/ref_missing branch September 13, 2022 22:58
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* DOC: Add missing API item to reference docs

* Address review

* Fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants