Skip to content

Commit

Permalink
Update series.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Nov 21, 2023
1 parent 5dfdcd4 commit a398529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3565,6 +3565,7 @@ def update(self, other: Series | Sequence | Mapping) -> None:
ctr = sys.getrefcount(self)
ref_count = REF_COUNT
if hasattr(self, "_cacher"):
# see https://github.com/pandas-dev/pandas/pull/56060#discussion_r1399245221
ref_count += 1
if ctr <= ref_count:
warnings.warn(
Expand Down

0 comments on commit a398529

Please sign in to comment.