Skip to content

Commit 37a3e8e

Browse files
REF: Simplify StringDtype check in write_multi_index (GH#63414)
1 parent 2c79460 commit 37a3e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/pytables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3150,7 +3150,7 @@ def write_multi_index(self, key: str, index: MultiIndex) -> None:
31503150
if isinstance(lev.dtype, ExtensionDtype):
31513151
# GH 63412
31523152
if isinstance(lev.dtype, StringDtype):
3153-
lev = lev.astype(object)
3153+
pass
31543154
else:
31553155
raise NotImplementedError(
31563156
"Saving a MultiIndex with an extension dtype is not supported."

0 commit comments

Comments
 (0)