Skip to content

Commit

Permalink
make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
annika-rudolph committed May 10, 2024
1 parent ffde2fd commit b5e228b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v3.0.0.rst
Expand Up @@ -430,7 +430,7 @@ MultiIndex
^^^^^^^^^^
- :func:`DataFrame.loc` with ``axis=0`` and :class:`MultiIndex` when setting a value adds extra columns (:issue:`58116`)
- :func:`MultiIndex.get_level_values` accessing a :class:`DatetimeIndex` does not carry the frequency attribute along (:issue:`58327`, :issue:`57949`)
-
-

I/O
^^^
Expand Down
4 changes: 1 addition & 3 deletions pandas/tests/indexes/multi/test_get_level_values.py
Expand Up @@ -126,9 +126,7 @@ def test_values_loses_freq_of_underlying_index():

def test_get_level_values_gets_frequency_correctly():
# GH#57949 GH#58327
datetime_index = pd.date_range(
start=pd.to_datetime("1/1/2018"), periods=4, freq="YS"
)
datetime_index = date_range(start=pd.to_datetime("1/1/2018"), periods=4, freq="YS")
other_index = ["A"]
multi_index = MultiIndex.from_product([datetime_index, other_index])

Expand Down

0 comments on commit b5e228b

Please sign in to comment.