We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe151e0 commit 419f932Copy full SHA for 419f932
pandas/io/pytables.py
@@ -72,6 +72,7 @@
72
is_extension_array_dtype,
73
is_integer_dtype,
74
is_list_like,
75
+ is_object_dtype,
76
is_string_dtype,
77
is_timedelta64_dtype,
78
needs_i8_conversion,
@@ -2560,7 +2561,7 @@ class DataIndexableCol(DataCol):
2560
2561
is_data_indexable = True
2562
2563
def validate_names(self) -> None:
- if not Index(self.values).is_object():
2564
+ if not is_object_dtype(Index(self.values)):
2565
# TODO: should the message here be more specifically non-str?
2566
raise ValueError("cannot have non-object label DataIndexableCol")
2567
0 commit comments