Skip to content

Commit

Permalink
Update pandas/tests/copy_view/test_chained_assignment_deprecation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Nov 27, 2023
1 parent c601d40 commit 9492962
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_methods_iloc_warn(using_copy_on_write):
def test_methods_iloc_getitem_item_cache(func, args, using_copy_on_write):
df = DataFrame({"a": [1, 2, 3], "b": 1})
ser = df.iloc[:, 0]
TODO(CoW-warn) should warn about updating a view
getattr(ser, func)(*args, inplace=True)

# parent that holds item_cache is dead, so don't increase ref count
Expand Down

0 comments on commit 9492962

Please sign in to comment.