|
13 | 13 |
|
14 | 14 | from pandas.core.dtypes.cast import find_common_type |
15 | 15 |
|
16 | | -import pandas as pd |
17 | 16 | from pandas import ( |
18 | 17 | CategoricalDtype, |
19 | 18 | CategoricalIndex, |
@@ -77,9 +76,9 @@ def test_union_different_types(index_flat, index_flat2, request): |
77 | 76 | idx1 = index_flat |
78 | 77 | idx2 = index_flat2 |
79 | 78 |
|
80 | | - # mixed int string |
81 | | - if idx1.equals(pd.Index([0, "a", 1, "b", 2, "c"])) or idx2.equals( |
82 | | - pd.Index([0, "a", 1, "b", 2, "c"]) |
| 79 | + # Mixed int string |
| 80 | + if idx1.equals(Index([0, "a", 1, "b", 2, "c"])) or idx2.equals( |
| 81 | + Index([0, "a", 1, "b", 2, "c"]) |
83 | 82 | ): |
84 | 83 | idx1 = idx1.astype(str) |
85 | 84 | idx2 = idx2.astype(str) |
@@ -244,7 +243,7 @@ def test_union_base(self, index): |
244 | 243 | index = index.unique() |
245 | 244 |
|
246 | 245 | # Mixed int string |
247 | | - if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])): |
| 246 | + if index.equals(Index([0, "a", 1, "b", 2, "c"])): |
248 | 247 | index = index.astype(str) |
249 | 248 |
|
250 | 249 | first = index[3:] |
@@ -313,7 +312,7 @@ def test_symmetric_difference(self, index, using_infer_string, request): |
313 | 312 | # index fixture has e.g. an index of bools that does not satisfy this, |
314 | 313 | # another with [0, 0, 1, 1, 2, 2] |
315 | 314 | pytest.skip("Index values no not satisfy test condition.") |
316 | | - if index.equals(pd.Index([0, "a", 1, "b", 2, "c"])): |
| 315 | + if index.equals(Index([0, "a", 1, "b", 2, "c"])): |
317 | 316 | index = index.astype(str) |
318 | 317 | first = index[1:] |
319 | 318 | second = index[:-1] |
|
0 commit comments