Skip to content

Commit c1d9e6d

Browse files
committed
pytables fixup
1 parent 513e3c3 commit c1d9e6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/io/pytables.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5209,7 +5209,11 @@ def _unconvert_string_array(
52095209
dtype = f"U{itemsize}"
52105210

52115211
if isinstance(data[0], bytes):
5212-
data = Series(data, copy=False).str.decode(encoding, errors=errors)._values
5212+
ser = Series(data, copy=False).str.decode(encoding, errors=errors)
5213+
if get_option("future.infer_string"):
5214+
data = ser.to_numpy()
5215+
else:
5216+
data = ser._values
52135217
else:
52145218
data = data.astype(dtype, copy=False).astype(object, copy=False)
52155219

0 commit comments

Comments
 (0)