Skip to content

Commit cf0014a

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.DatetimeIndex.to_pydatetime (#58441)
* DOC: add RT03,SA01 for pandas.DatetimeIndex.to_pydatetime * DOC: remove RT03,SA01 for pandas.DatetimeIndex.to_pydatetime
1 parent 1593fb9 commit cf0014a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
101101
-i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \
102102
-i "pandas.DatetimeIndex.snap PR01,RT03" \
103103
-i "pandas.DatetimeIndex.to_period RT03" \
104-
-i "pandas.DatetimeIndex.to_pydatetime RT03,SA01" \
105104
-i "pandas.Grouper PR02" \
106105
-i "pandas.Index PR07" \
107106
-i "pandas.Index.append PR07,RT03,SA01" \

Diff for: pandas/core/arrays/datetimes.py

+6
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,12 @@ def to_pydatetime(self) -> npt.NDArray[np.object_]:
11271127
Returns
11281128
-------
11291129
numpy.ndarray
1130+
An ndarray of ``datetime.datetime`` objects.
1131+
1132+
See Also
1133+
--------
1134+
DatetimeIndex.to_julian_date : Converts Datetime Array to float64 ndarray
1135+
of Julian Dates.
11301136
11311137
Examples
11321138
--------

0 commit comments

Comments
 (0)