Skip to content

Commit b2a244a

Browse files
add description to whatsnew and revert unwanted changes in datetimearray docstring
1 parent 211edec commit b2a244a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/source/whatsnew/v3.0.0.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ Missing
418418
MultiIndex
419419
^^^^^^^^^^
420420
- :func:`DataFrame.loc` with ``axis=0`` and :class:`MultiIndex` when setting a value adds extra columns (:issue:`58116`)
421-
-
421+
- :func:`MultiIndex.get_level_values` accessing a :class:`DatetimeIndex` does not carry the frequency attribute along (:issue:`58327`, :issue:`57949`)
422+
-
422423

423424
I/O
424425
^^^

pandas/core/arrays/datetimelike.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ def strftime(self, date_format: str) -> npt.NDArray[np.object_]:
17981798
----------
17991799
freq : str or Offset
18001800
The frequency level to {op} the index to. Must be a fixed
1801-
frequency like 'S' (second) not 'ME' (month end). See
1801+
frequency like 's' (second) not 'ME' (month end). See
18021802
:ref:`frequency aliases <timeseries.offset_aliases>` for
18031803
a list of possible `freq` values.
18041804
ambiguous : 'infer', bool-ndarray, 'NaT', default 'raise'
@@ -1836,6 +1836,11 @@ def strftime(self, date_format: str) -> npt.NDArray[np.object_]:
18361836
------
18371837
ValueError if the `freq` cannot be converted.
18381838
1839+
See Also
1840+
--------
1841+
DatetimeIndex.floor : Perform floor operation on the data to the specified `freq`.
1842+
DatetimeIndex.snap : Snap time stamps to nearest occurring frequency.
1843+
18391844
Notes
18401845
-----
18411846
If the timestamps have a timezone, {op}ing will take place relative to the

0 commit comments

Comments
 (0)