Skip to content

Commit 9a6a231

Browse files
committed
Simplify
1 parent c1d9e6d commit 9a6a231

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/io/pytables.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5210,10 +5210,7 @@ def _unconvert_string_array(
52105210

52115211
if isinstance(data[0], bytes):
52125212
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
5213+
data = ser.to_numpy()
52175214
else:
52185215
data = data.astype(dtype, copy=False).astype(object, copy=False)
52195216

0 commit comments

Comments
 (0)