Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Dec 8, 2023
1 parent 3cc281a commit 8a06aef
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pandas/tests/frame/methods/test_to_dict_of_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@


class TestToDictOfBlocks:
def test_copy_blocks(self, float_frame):
# GH#9607
df = DataFrame(float_frame, copy=True)
column = df.columns[0]

# use the default copy=True, change a column
_last_df = None
blocks = df._to_dict_of_blocks(copy=True)
for _df in blocks.values():
_last_df = _df
if column in _df:
_df.loc[:, column] = _df[column] + 1

# make sure we did not change the original DataFrame
assert _last_df is not None and not _last_df[column].equals(df[column])

@pytest.mark.filterwarnings("ignore:Setting a value on a view:FutureWarning")
def test_no_copy_blocks(self, float_frame, using_copy_on_write):
# GH#9607
Expand Down

0 comments on commit 8a06aef

Please sign in to comment.