Skip to content

Commit 1782fbd

Browse files
committed
Fix array manager
1 parent 1696d8a commit 1782fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/array_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,11 @@ def _convert(arr):
386386
convert_period=True,
387387
convert_interval=True,
388388
)
389-
if result is arr and copy:
389+
if result is arr and (copy or copy is None):
390390
return arr.copy()
391391
return result
392392
else:
393-
return arr.copy() if copy else arr
393+
return arr.copy() if (copy or copy is None) else arr
394394

395395
return self.apply(_convert)
396396

0 commit comments

Comments
 (0)