File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
71
71
-i ES01 ` # For now it is ok if docstrings are missing the extended summary` \
72
72
-i " pandas.Series.dt PR01" ` # Accessors are implemented as classes, but we do not document the Parameters section` \
73
73
-i " pandas.NA SA01" \
74
- -i " pandas.NaT SA01" \
75
74
-i " pandas.Period.freq GL08" \
76
75
-i " pandas.Period.ordinal GL08" \
77
76
-i " pandas.Period.strftime PR01,SA01" \
Original file line number Diff line number Diff line change @@ -348,6 +348,22 @@ class NaTType(_NaT):
348
348
"""
349
349
(N)ot-(A)-(T)ime, the time equivalent of NaN.
350
350
351
+ NaT is used to denote missing or null values in datetime and timedelta objects
352
+ in pandas. It functions similarly to how NaN is used for numerical data.
353
+ Operations with NaT will generally propagate the NaT value, similar to NaN.
354
+ NaT can be used in pandas data structures like Series and DataFrame
355
+ to represent missing datetime values. It is useful in data analysis
356
+ and time series analysis when working with incomplete or sparse
357
+ time-based data. Pandas provides robust handling of NaT to ensure
358
+ consistency and reliability in computations involving datetime objects.
359
+
360
+ See Also
361
+ --------
362
+ NA : NA ("not available") missing value indicator.
363
+ isna : Detect missing values (NaN or NaT) in an array-like object.
364
+ notna : Detect non-missing values.
365
+ numpy.nan : Floating point representation of Not a Number (NaN) for numerical data.
366
+
351
367
Examples
352
368
--------
353
369
>>> pd.DataFrame([pd.Timestamp("2023"), np.nan], columns=["col_1"])
You can’t perform that action at this time.
0 commit comments