def test_shift_series(): m = IndexMap() s = pd.Series(1.1234567890, index=range(10000)) assert len(m.shift(s).unique()) == 1 assert m.shift(s).unique()[0] == 1234567890
def test_shift_scalar(): m = IndexMap() assert m.shift(1.1234567890) == 1234567890