Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Enforce Numpy Docstring Validation for pandas.DatetimeIndex.to_pydatetime #58441

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Expand Up @@ -101,7 +101,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \
-i "pandas.DatetimeIndex.snap PR01,RT03" \
-i "pandas.DatetimeIndex.to_period RT03" \
-i "pandas.DatetimeIndex.to_pydatetime RT03,SA01" \
-i "pandas.Grouper PR02" \
-i "pandas.Index PR07" \
-i "pandas.Index.append PR07,RT03,SA01" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/core/arrays/datetimes.py
Expand Up @@ -1127,6 +1127,12 @@ def to_pydatetime(self) -> npt.NDArray[np.object_]:
Returns
-------
numpy.ndarray
An ndarray of ``datetime.datetime`` objects.

See Also
--------
DatetimeIndex.to_julian_date : Converts Datetime Array to float64 ndarray
of Julian Dates.

Examples
--------
Expand Down