Skip to content

Commit e66635e

Browse files
committed
Revert back and add comment
1 parent dd215ea commit e66635e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ def copy(self, *, deep: bool) -> Self:
725725
-------
726726
BlockManager
727727
"""
728-
# this preserves the notion of view copying of axes
729-
new_axes = [ax.copy(deep=deep) for ax in self.axes]
728+
# TODO: Should deep=True be respected for axes?
729+
new_axes = [ax.view() for ax in self.axes]
730730

731731
res = self.apply("copy", deep=deep)
732732
res.axes = new_axes

0 commit comments

Comments
 (0)