Skip to content

Commit

Permalink
DOC: Removing repeated NA (pandas-dev#54821)
Browse files Browse the repository at this point in the history
* Remove repetead NA

* Added file to toctree

* changed _api.missing_value

* Added NaT to missing values section

---------

Co-authored-by: Marco Edward Gorelli <[email protected]>
  • Loading branch information
DeaMariaLeon and MarcoGorelli authored Sep 29, 2023
1 parent 8f20e82 commit c8e7a98
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
13 changes: 0 additions & 13 deletions doc/source/reference/arrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ is the missing value for datetime data.

Timestamp

.. autosummary::
:toctree: api/

NaT

Properties
~~~~~~~~~~
.. autosummary::
Expand Down Expand Up @@ -257,11 +252,6 @@ is the missing value for timedelta data.

Timedelta

.. autosummary::
:toctree: api/

NaT

Properties
~~~~~~~~~~
.. autosummary::
Expand Down Expand Up @@ -465,7 +455,6 @@ pandas provides this through :class:`arrays.IntegerArray`.
UInt16Dtype
UInt32Dtype
UInt64Dtype
NA

.. _api.arrays.float_na:

Expand All @@ -484,7 +473,6 @@ Nullable float

Float32Dtype
Float64Dtype
NA

.. _api.arrays.categorical:

Expand Down Expand Up @@ -621,7 +609,6 @@ with a bool :class:`numpy.ndarray`.
:template: autosummary/class_without_autosummary.rst

BooleanDtype
NA


.. Dtype attributes which are manually listed in their docstrings: including
Expand Down
1 change: 1 addition & 0 deletions doc/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ are mentioned in the documentation.
options
extensions
testing
missing_value

.. This is to prevent warnings in the doc build. We don't want to encourage
.. these methods.
Expand Down
24 changes: 24 additions & 0 deletions doc/source/reference/missing_value.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ header }}

.. _api.missing_value:

==============
Missing values
==============
.. currentmodule:: pandas

NA is the way to represent missing values for nullable dtypes (see below):

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

NA

NaT is the missing value for timedelta and datetime data (see below):

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

NaT

0 comments on commit c8e7a98

Please sign in to comment.