Skip to content

Commit 5f0b69a

Browse files
committed
DEPR: silence some deprecation warnings
1 parent d652485 commit 5f0b69a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/tests/test_multilevel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ def test_multilevel_consolidate(self):
16461646
'bar', 'one'), ('bar', 'two')])
16471647
df = DataFrame(np.random.randn(4, 4), index=index, columns=index)
16481648
df['Totals', ''] = df.sum(1)
1649-
df = df.consolidate()
1649+
df = df._consolidate()
16501650

16511651
def test_ix_preserve_names(self):
16521652
result = self.ymd.loc[2000]

pandas/tests/test_panel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def test_ix_setitem_slice_dataframe(self):
688688
def test_ix_align(self):
689689
from pandas import Series
690690
b = Series(np.random.randn(10), name=0)
691-
b.sort()
691+
b.sort_values()
692692
df_orig = Panel(np.random.randn(3, 10, 2))
693693
df = df_orig.copy()
694694

@@ -1001,7 +1001,7 @@ def test_consolidate(self):
10011001
self.panel['foo'] = 1.
10021002
self.assertFalse(self.panel._data.is_consolidated())
10031003

1004-
panel = self.panel.consolidate()
1004+
panel = self.panel._consolidate()
10051005
self.assertTrue(panel._data.is_consolidated())
10061006

10071007
def test_ctor_dict(self):

0 commit comments

Comments
 (0)