#NEWLINE# def _unpickle_series_compat( self , state ) : #NEWLINE# #INDENT# if isinstance ( state , dict ) : #NEWLINE# #INDENT# self . _data = state [ '_data' ] #NEWLINE# self . name = state [ 'name' ] #NEWLINE# self . index = data . _data . index #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( state , tuple ) : #NEWLINE# #INDENT# ( nd_state , own_state ) = state #NEWLINE# data = np . empty ( nd_state [ 1 ] , dtype = nd_state [ 2 ] ) #NEWLINE# np . ndarray . __setstate__ ( data , nd_state ) #NEWLINE# ( index , name ) = ( own_state [ 0 ] , None ) #NEWLINE# if ( len ( own_state ) > 1 ) : #NEWLINE# #INDENT# name = own_state [ 1 ] #NEWLINE# #UNINDENT# self . _data = SingleBlockManager ( data , index , fastpath = True ) #NEWLINE# self . _index = index #NEWLINE# self . name = name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ( 'cannot unpickle legacy formats -> [%s]' % state ) )