Skip to content

Commit e2464c0

Browse files
ensure series access has new index
1 parent 1b617ab commit e2464c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/internals/managers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,7 @@ def iget(self, i: int, track_ref: bool = True) -> SingleBlockManager:
12001200
nb = type(block)(
12011201
values, placement=bp, ndim=1, refs=block.refs if track_ref else None
12021202
)
1203-
# TODO shallow copy index? (might already be done where this gets called)
1204-
return SingleBlockManager(nb, self.axes[1])
1203+
return SingleBlockManager(nb, self.axes[1].view())
12051204

12061205
def iget_values(self, i: int) -> ArrayLike:
12071206
"""

0 commit comments

Comments
 (0)