Skip to content

Commit 447b14f

Browse files
authored
PERF: MultiIndex unpickle (#47916)
1 parent 14de3fd commit 447b14f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/indexes/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ def _new_Index(cls, d):
259259
# GH#23752 "labels" kwarg has been replaced with "codes"
260260
d["codes"] = d.pop("labels")
261261

262+
# Since this was a valid MultiIndex at pickle-time, we don't need to
263+
# check validty at un-pickle time.
264+
d["verify_integrity"] = False
265+
262266
elif "dtype" not in d and "data" in d:
263267
# Prevent Index.__new__ from conducting inference;
264268
# "data" key not in RangeIndex

0 commit comments

Comments
 (0)