You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
435 B
14 lines
435 B
1 year ago
|
import pytest
|
||
|
|
||
|
from pandas import IntervalIndex
|
||
|
import pandas._testing as tm
|
||
|
|
||
|
|
||
|
class TestPickle:
|
||
|
@pytest.mark.parametrize("closed", ["left", "right", "both"])
|
||
|
def test_pickle_round_trip_closed(self, closed):
|
||
|
# https://github.com/pandas-dev/pandas/issues/35658
|
||
|
idx = IntervalIndex.from_tuples([(1, 2), (2, 3)], closed=closed)
|
||
|
result = tm.round_trip_pickle(idx)
|
||
|
tm.assert_index_equal(result, idx)
|