We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b904308 commit e6f90d9Copy full SHA for e6f90d9
pandas/tests/indexing/test_iloc.py
@@ -596,7 +596,8 @@ def test_loc_identity_slice_returns_new_object(self):
596
# GH13873
597
df = DataFrame({'a': [1, 2, 3]})
598
result = df.iloc[:]
599
- assert not result is df
+ assert result is not df
600
+
601
# should be a shallow copy
602
df['a'] = [4, 4, 4]
603
assert (result['a'] == 4).all()
pandas/tests/indexing/test_loc.py
@@ -635,7 +635,8 @@ def test_loc_identity_slice_returns_new_object(self):
635
636
637
result = df.loc[:]
638
639
640
641
642
0 commit comments