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 327d559 commit ceee19bCopy full SHA for ceee19b
pandas/io/pytables.py
@@ -30,6 +30,7 @@
30
from pandas._config import (
31
config,
32
get_option,
33
+ using_copy_on_write,
34
using_pyarrow_string_dtype,
35
)
36
@@ -3297,6 +3298,10 @@ def read(
3297
3298
3299
if len(dfs) > 0:
3300
out = concat(dfs, axis=1, copy=True)
3301
+ if using_copy_on_write():
3302
+ # with CoW, concat ignores the copy keyword. Here, we still want
3303
+ # to copy to enforce optimized column-major layout
3304
+ out = out.copy()
3305
out = out.reindex(columns=items, copy=False)
3306
return out
3307
0 commit comments