Skip to content

Commit

Permalink
troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Jan 14, 2019
1 parent 2253bdf commit 032a74e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pandas/tests/frame/test_alter_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,10 @@ def test_rename_inplace(self):
assert 'C' in float_frame
assert 'foo' not in float_frame

fid = id(float_frame)
c_id = id(float_frame['C'])
float_frame = float_frame.copy()
assert fid != id(float_frame)
float_frame.rename(columns={'C': 'foo'}, inplace=True)

assert 'C' not in float_frame
Expand Down

0 comments on commit 032a74e

Please sign in to comment.