Skip to content

Commit 032a74e

Browse files
committed
troubleshoot
1 parent 2253bdf commit 032a74e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/frame/test_alter_axes.py

+2
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,10 @@ def test_rename_inplace(self):
684684
assert 'C' in float_frame
685685
assert 'foo' not in float_frame
686686

687+
fid = id(float_frame)
687688
c_id = id(float_frame['C'])
688689
float_frame = float_frame.copy()
690+
assert fid != id(float_frame)
689691
float_frame.rename(columns={'C': 'foo'}, inplace=True)
690692

691693
assert 'C' not in float_frame

0 commit comments

Comments
 (0)