diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index a83bca267213f..4d99ebdce86dc 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -99,6 +99,12 @@ Grouping `Create multiple aggregated columns `__ +Splitting +~~~~~~~~~ + +`Splitting a frame +`__ + Timeseries ---------- diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 59f750d4570ad..4cbb09378266f 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -795,14 +795,6 @@ def __nonzero__(self): def ndim(self): return len(self.axes) - def is_mixed_dtype(self): - counts = set() - for block in self.blocks: - counts.add(block.dtype) - if len(counts) > 1: - return True - return False - def set_axis(self, axis, value): cur_axis = self.axes[axis] value = _ensure_index(value) diff --git a/pandas/tests/test_internals.py b/pandas/tests/test_internals.py index f39a6d3b3feec..93e9b07558319 100644 --- a/pandas/tests/test_internals.py +++ b/pandas/tests/test_internals.py @@ -238,10 +238,10 @@ def test_attrs(self): self.assertEquals(len(self.mgr), len(self.mgr.items)) def test_is_mixed_dtype(self): - self.assert_(self.mgr.is_mixed_dtype()) + self.assert_(self.mgr.is_mixed_type) mgr = create_blockmanager([get_bool_ex(['a']), get_bool_ex(['b'])]) - self.assert_(not mgr.is_mixed_dtype()) + self.assert_(not mgr.is_mixed_type) def test_is_indexed_like(self): self.assert_(self.mgr._is_indexed_like(self.mgr))