parameters: (self)
return_statement: return bm
docstring: Join together blocks having same dtype
  
          Returns
          -------
          y : BlockManager
docstring_summary: Join together blocks having same dtype
docstring_tokens: Join together blocks having same dtype
function: def consolidate(self):
          """
          Join together blocks having same dtype
  
          Returns
          -------
          y : BlockManager
          """
          if self.is_consolidated():
              return self
  
          bm = self.__class__(self.blocks, self.axes)
          bm._is_consolidated = False
          bm._consolidate_inplace()
          return bm
function_tokens: def consolidate ( self ) : if self . is_consolidated ( ) : return self bm = self . __class__ ( self . blocks , self . axes ) bm . _is_consolidated = False bm . _consolidate_inplace ( ) return bm