Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 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)
Exemplo n.º 5
0
 def assert_panel_equal(cls, x, y):
     tm.assert_sp_panel_equal(x, y)
Exemplo n.º 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)
Exemplo n.º 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)