We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6653dc commit 0659166Copy full SHA for 0659166
tests/indexes/test_indexes.py
@@ -1624,9 +1624,7 @@ def test_index_where() -> None:
1624
1625
def test_datetimeindex_where() -> None:
1626
"""Test DatetimeIndex.where with multiple types of other GH1419."""
1627
- datetime_index = pd.DatetimeIndex(
1628
- pd.date_range(start="2025-01-01", freq="h", periods=48)
1629
- )
+ datetime_index = pd.date_range(start="2025-01-01", freq="h", periods=48)
1630
mask = np.ones(48, dtype=bool)
1631
val_idx = datetime_index.where(mask, datetime_index - pd.Timedelta(days=1))
1632
check(assert_type(val_idx, DatetimeIndex), DatetimeIndex)
0 commit comments