Skip to content

Commit 8a2fd84

Browse files
committed
Add test for a null slice
1 parent 3f5bdca commit 8a2fd84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/indexes/test_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,10 @@ def test_slice_is_montonic(self):
985985
assert not filtered_index.is_monotonic_decreasing
986986
assert filtered_index.is_monotonic_increasing
987987

988+
filtered_index = index[:].copy()
989+
assert not filtered_index.is_monotonic_decreasing
990+
assert filtered_index.is_monotonic_increasing
991+
988992
@pytest.mark.parametrize(
989993
"index",
990994
[

0 commit comments

Comments
 (0)