def _concat_index_asobject(to_concat, name=None):
 klasses = (ABCDatetimeIndex, ABCTimedeltaIndex, ABCPeriodIndex)
 to_concat = [(x.asobject if isinstance(x, klasses) else x) for x in to_concat]
 from pandas import Index
 self = to_concat[0]
 attribs = self._get_attributes_dict()
 attribs['name'] = name
 to_concat = [(x._values if isinstance(x, Index) else x) for x in to_concat]
 return self._shallow_copy_with_infer(np.concatenate(to_concat), **attribs)

def _concat_index_asobject ( to_concat , name = None ) : klasses = ( ABCDatetimeIndex , ABCTimedeltaIndex , ABCPeriodIndex ) to_concat = [ ( x . asobject if isinstance ( x , klasses ) else x ) for x in to_concat ] from pandas import Index self = to_concat [ 0 ] attribs = self . _get_attributes_dict ( ) attribs [ 'name' ] = name to_concat = [ ( x . _values if isinstance ( x , Index ) else x ) for x in to_concat ] return self . _shallow_copy_with_infer ( np . concatenate ( to_concat ) , ** attribs )
concat all inputs as object .