def _consolidate(self, inplace=False):
    '\n        Compute NDFrame with "consolidated" internals (data of each dtype\n        grouped together in a single ndarray).\n\n        Parameters\n        ----------\n        inplace : boolean, default False\n            If False return new object, otherwise modify existing object\n\n        Returns\n        -------\n        consolidated : same type as caller\n        '
    inplace = validate_bool_kwarg(inplace, 'inplace')
    if inplace:
        self._consolidate_inplace()
    else:
        f = (lambda : self._data.consolidate())
        cons_data = self._protect_consolidate(f)
        return self._constructor(cons_data).__finalize__(self)
Compute NDFrame with "consolidated" internals (data of each dtype
grouped together in a single ndarray).

Parameters
----------
inplace : boolean, default False
    If False return new object, otherwise modify existing object

Returns
-------
consolidated : same type as caller
def _consolidate(self, inplace=False):
    '\n        Compute NDFrame with "consolidated" internals (data of each dtype\n        grouped together in a single ndarray).\n\n        Parameters\n        ----------\n        inplace : boolean, default False\n            If False return new object, otherwise modify existing object\n\n        Returns\n        -------\n        consolidated : same type as caller\n        '
    inplace = validate_bool_kwarg(inplace, 'inplace')
    if inplace:
        self._consolidate_inplace()
    else:
        f = (lambda : self._data.consolidate())
        cons_data = self._protect_consolidate(f)
        return self._constructor(cons_data).__finalize__(self)