Skip to content

Commit 1baec15

Browse files
DOC: fix SA01, ES01 for pandas.errors.OutOfBoundsDatetime (#59925)
1 parent 111ff84 commit 1baec15

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
168168
-i "pandas.errors.NumExprClobberingError SA01" \
169169
-i "pandas.errors.NumbaUtilError SA01" \
170170
-i "pandas.errors.OptionError SA01" \
171-
-i "pandas.errors.OutOfBoundsDatetime SA01" \
172171
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
173172
-i "pandas.errors.PerformanceWarning SA01" \
174173
-i "pandas.errors.PossibleDataLossError SA01" \

pandas/_libs/tslibs/np_datetime.pyx

+9
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ class OutOfBoundsDatetime(ValueError):
176176
"""
177177
Raised when the datetime is outside the range that can be represented.
178178
179+
This error occurs when attempting to convert or parse a datetime value
180+
that exceeds the bounds supported by pandas' internal datetime
181+
representation.
182+
183+
See Also
184+
--------
185+
to_datetime : Convert argument to datetime.
186+
Timestamp : Pandas replacement for python ``datetime.datetime`` object.
187+
179188
Examples
180189
--------
181190
>>> pd.to_datetime("08335394550")

0 commit comments

Comments
 (0)