File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -332,15 +332,6 @@ def test_deepcopy(self):
332
332
for idx , value in compat .iteritems (series ):
333
333
self .assertNotEqual (self .frame ['A' ][idx ], value )
334
334
335
- def test_deepcopy_empty (self ):
336
- # This test covers empty frame copying with non-empty column sets
337
- # as reported in issue #15370
338
- # https://github.com/pandas-dev/pandas/issues/15370
339
- empty_frame = DataFrame (data = [], index = [], columns = ['A' ])
340
- empty_frame_copy = deepcopy (empty_frame )
341
-
342
- self .assertEqual (empty_frame , empty_frame_copy )
343
-
344
335
# ---------------------------------------------------------------------
345
336
# Transposing
346
337
Original file line number Diff line number Diff line change 2
2
# pylint: disable-msg=E1101,W0612
3
3
4
4
from operator import methodcaller
5
+ from copy import deepcopy
5
6
import pytest
6
7
import numpy as np
7
8
from numpy import nan
@@ -1539,6 +1540,15 @@ def test_to_xarray(self):
1539
1540
expected ,
1540
1541
check_index_type = False )
1541
1542
1543
+ def test_deepcopy_empty (self ):
1544
+ # This test covers empty frame copying with non-empty column sets
1545
+ # as reported in issue #15370
1546
+ # https://github.com/pandas-dev/pandas/issues/15370
1547
+ empty_frame = DataFrame (data = [], index = [], columns = ['A' ])
1548
+ empty_frame_copy = deepcopy (empty_frame )
1549
+
1550
+ self .assertEqual (empty_frame , empty_frame_copy )
1551
+
1542
1552
1543
1553
class TestPanel (tm .TestCase , Generic ):
1544
1554
_typ = Panel
You can’t perform that action at this time.
0 commit comments