Skip to content

Commit a5df378

Browse files
make pre-commit happy
1 parent c80776a commit a5df378

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

doc/source/whatsnew/v3.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ MultiIndex
435435
^^^^^^^^^^
436436
- :func:`DataFrame.loc` with ``axis=0`` and :class:`MultiIndex` when setting a value adds extra columns (:issue:`58116`)
437437
- :func:`MultiIndex.get_level_values` accessing a :class:`DatetimeIndex` does not carry the frequency attribute along (:issue:`58327`, :issue:`57949`)
438-
-
438+
-
439439

440440
I/O
441441
^^^

pandas/tests/indexes/multi/test_get_level_values.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ def test_values_loses_freq_of_underlying_index():
126126

127127
def test_get_level_values_gets_frequency_correctly():
128128
# GH#57949 GH#58327
129-
datetime_index = pd.date_range(
130-
start=pd.to_datetime("1/1/2018"), periods=4, freq="YS"
131-
)
129+
datetime_index = date_range(start=pd.to_datetime("1/1/2018"), periods=4, freq="YS")
132130
other_index = ["A"]
133131
multi_index = MultiIndex.from_product([datetime_index, other_index])
134132

0 commit comments

Comments
 (0)