#NEWLINE# def _stack_measures( self , ids , var_name = 'series' ) : #NEWLINE# #INDENT# 'Stack data and keep the ids columns.\n\n        Args:\n            ids (list(str)): the column names that describe the measures\n\n        ' #NEWLINE# if isinstance ( self . y . selection , list ) : #NEWLINE# #INDENT# dim = 'y' #NEWLINE# if ( self . x . selection is not None ) : #NEWLINE# #INDENT# ids . append ( self . x . selection ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# dim = 'x' #NEWLINE# if ( var_name . y . selection is not None ) : #NEWLINE# #INDENT# ids . append ( self . y . selection ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( ids ) == 0 ) : #NEWLINE# #INDENT# ids = None #NEWLINE# #UNINDENT# dim_prop = getattr ( self , dim ) #NEWLINE# self . _data . stack_measures ( measures = dim_prop . selection , ids = ids , var_name = var_name ) #NEWLINE# dim_prop . set_data ( self . _data ) #NEWLINE# self . set_series ( 'series' )