Skip to content

Commit c8e7a98

Browse files
DOC: Removing repeated NA (pandas-dev#54821)
* 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]>
1 parent 8f20e82 commit c8e7a98

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

doc/source/reference/arrays.rst

-13
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ is the missing value for datetime data.
134134

135135
Timestamp
136136

137-
.. autosummary::
138-
:toctree: api/
139-
140-
NaT
141-
142137
Properties
143138
~~~~~~~~~~
144139
.. autosummary::
@@ -257,11 +252,6 @@ is the missing value for timedelta data.
257252

258253
Timedelta
259254

260-
.. autosummary::
261-
:toctree: api/
262-
263-
NaT
264-
265255
Properties
266256
~~~~~~~~~~
267257
.. autosummary::
@@ -465,7 +455,6 @@ pandas provides this through :class:`arrays.IntegerArray`.
465455
UInt16Dtype
466456
UInt32Dtype
467457
UInt64Dtype
468-
NA
469458

470459
.. _api.arrays.float_na:
471460

@@ -484,7 +473,6 @@ Nullable float
484473

485474
Float32Dtype
486475
Float64Dtype
487-
NA
488476

489477
.. _api.arrays.categorical:
490478

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

623611
BooleanDtype
624-
NA
625612

626613

627614
.. Dtype attributes which are manually listed in their docstrings: including

doc/source/reference/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ are mentioned in the documentation.
5353
options
5454
extensions
5555
testing
56+
missing_value
5657

5758
.. This is to prevent warnings in the doc build. We don't want to encourage
5859
.. these methods.
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ header }}
2+
3+
.. _api.missing_value:
4+
5+
==============
6+
Missing values
7+
==============
8+
.. currentmodule:: pandas
9+
10+
NA is the way to represent missing values for nullable dtypes (see below):
11+
12+
.. autosummary::
13+
:toctree: api/
14+
:template: autosummary/class_without_autosummary.rst
15+
16+
NA
17+
18+
NaT is the missing value for timedelta and datetime data (see below):
19+
20+
.. autosummary::
21+
:toctree: api/
22+
:template: autosummary/class_without_autosummary.rst
23+
24+
NaT

0 commit comments

Comments
 (0)