|
5 | 5 | import pandas as pd |
6 | 6 | import pandas.util.testing as tm |
7 | 7 | import pytest |
8 | | -from pandas import CategoricalIndex, Index, MultiIndex |
9 | | -from pandas.compat import range |
10 | | -from pandas.compat import PY3, PYPY, lrange, lzip, range, u |
11 | | -from pandas.util.testing import assert_almost_equal |
| 8 | +from pandas import CategoricalIndex, Index, IntervalIndex, MultiIndex |
| 9 | +from pandas.compat import lrange, range |
12 | 10 | from pandas.core.indexes.base import InvalidIndexError |
13 | | -from pandas import (CategoricalIndex, DatetimeIndex, Float64Index, Index, |
14 | | - Int64Index, IntervalIndex, MultiIndex, PeriodIndex, |
15 | | - RangeIndex, Series, TimedeltaIndex, UInt64Index, compat, |
16 | | - isna) |
| 11 | +from pandas.util.testing import assert_almost_equal |
17 | 12 |
|
18 | 13 |
|
19 | 14 | def test_get_loc(idx): |
@@ -312,7 +307,7 @@ def assert_matching(actual, expected, check_dtype=False): |
312 | 307 |
|
313 | 308 | with tm.assert_raises_regex(ValueError, "^On"): |
314 | 309 | idx.set_labels([0, 1, 2, 3, 4, 5], level=0, |
315 | | - inplace=inplace) |
| 310 | + inplace=inplace) |
316 | 311 | assert_matching(idx.labels, original_index.labels, |
317 | 312 | check_dtype=True) |
318 | 313 |
|
|
0 commit comments