#NEWLINE# def _delegate_method( self , name , * args , **kwargs ) : #NEWLINE# #INDENT# from pandas import Series #NEWLINE# method = getattr ( self . categorical , name ) #NEWLINE# res = method ( * args , ** kwargs ) #NEWLINE# if ( res is not None ) : #NEWLINE# #INDENT# return Series ( res , index = self . index )