Function
test_loc_getitem_int
(frame_random_data_integer_multi_index)
Source from the content-addressed store, hash-verified
| 536 | |
| 537 | |
| 538 | def test_loc_getitem_int(frame_random_data_integer_multi_index): |
| 539 | df = frame_random_data_integer_multi_index |
| 540 | result = df.loc[1] |
| 541 | expected = df[-3:] |
| 542 | expected.index = expected.index.droplevel(0) |
| 543 | tm.assert_frame_equal(result, expected) |
| 544 | |
| 545 | |
| 546 | def test_loc_getitem_int_raises_exception(frame_random_data_integer_multi_index): |
Callers
nothing calls this directly
Tested by
no test coverage detected