Skip to content

Commit b026e8d

Browse files
committed
don't use a double dict
1 parent 30a13b9 commit b026e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ def test_map_dictlike(self, mapper):
10251025
pytest.skip("tested in test_categorical")
10261026
expected = index
10271027

1028-
identity = mapper({x: x for x in index}, index)
1028+
identity = mapper(index.values, index)
10291029
result = index.map(identity)
10301030
tm.assert_index_equal(result, expected)
10311031

0 commit comments

Comments
 (0)