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)
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)
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)
def assert_panel_equal(cls, x, y): tm.assert_sp_panel_equal(x, y)