Skip to content

Commit 51fd9a7

Browse files
committed
Doc and update _parent
1 parent 29ae903 commit 51fd9a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modin/pandas/series.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,11 @@ def set_backend(
29252925
*,
29262926
switch_operation: Optional[str] = None,
29272927
) -> Optional[Self]:
2928+
# A series which is moved, potentially without its parent needs to
2929+
# have it's parent reset. This is aligned with CoW chained assigment
2930+
# semantics as well, but it is a little different from existing modin
2931+
# semantics. This is why we only do this for hybrid and inplace
2932+
# modification.
29282933
if inplace and self._parent is not None:
29292934
if backend != self._parent.get_backend():
29302935
self._parent = None

0 commit comments

Comments
 (0)