Skip to content

Commit bd2654b

Browse files
committed
test asof with str
1 parent 7424d2e commit bd2654b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/indexes/test_indexes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,8 @@ def test_index_putmask() -> None:
15981598

15991599

16001600
def test_index_asof() -> None:
1601-
idx = pd.Index([1, 2])
1602-
check(assert_type(idx.asof(1), "Scalar"), np.integer)
1601+
check(assert_type(pd.Index([1, 2]).asof(1), "Scalar"), np.integer)
1602+
check(assert_type(pd.Index(["a", "b", "c"]).asof("c"), "Scalar"), str)
16031603

16041604

16051605
def test_index_asof_locs() -> None:

0 commit comments

Comments
 (0)