コード例 #1
0
ファイル: test_panel.py プロジェクト: shreeshbhat/pandas
 def test_from_dict(self):
     with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
         fd = SparsePanel.from_dict(self.data_dict)
     tm.assert_sp_panel_equal(fd, self.panel)
コード例 #2
0
ファイル: test_panel.py プロジェクト: shreeshbhat/pandas
 def _test_roundtrip(panel):
     result = self.round_trip_pickle(panel)
     tm.assertIsInstance(result.items, Index)
     tm.assertIsInstance(result.major_axis, Index)
     tm.assertIsInstance(result.minor_axis, Index)
     tm.assert_sp_panel_equal(panel, result)
コード例 #3
0
ファイル: test_panel.py プロジェクト: shreeshbhat/pandas
 def test_copy(self):
     with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
         cop = self.panel.copy()
     tm.assert_sp_panel_equal(cop, self.panel)
コード例 #4
0
 def test_from_dict(self):
     with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
         fd = SparsePanel.from_dict(self.data_dict)
     tm.assert_sp_panel_equal(fd, self.panel)
コード例 #5
0
 def assert_panel_equal(cls, x, y):
     tm.assert_sp_panel_equal(x, y)
コード例 #6
0
 def test_copy(self):
     with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
         cop = self.panel.copy()
     tm.assert_sp_panel_equal(cop, self.panel)
コード例 #7
0
 def _test_roundtrip(panel):
     result = self.round_trip_pickle(panel)
     tm.assertIsInstance(result.items, Index)
     tm.assertIsInstance(result.major_axis, Index)
     tm.assertIsInstance(result.minor_axis, Index)
     tm.assert_sp_panel_equal(panel, result)