#NEWLINE# def setup( self , dates ) : #NEWLINE# #INDENT# cols = { #NEWLINE# #INDENT# NEXT_EX_DATE : self . get_sids_to_frames ( zip_with_dates , next_ex_and_pay_dates , next_date_intervals , dates ) , #NEWLINE# PREVIOUS_EX_DATE : self . get_sids_to_frames ( zip_with_dates , prev_ex_and_pay_dates , prev_date_intervals , dates ) , #NEWLINE# NEXT_AMOUNT : self . get_sids_to_frames ( zip_with_floats , next_amounts , next_date_intervals , dates ) , #NEWLINE# PREVIOUS_AMOUNT : self . get_sids_to_frames ( zip_with_floats , prev_amounts , prev_date_intervals , dates ) , #NEWLINE# #UNINDENT# } #NEWLINE# cols [ DAYS_TO_NEXT_EX_DATE ] = self . _compute_busday_offsets ( cols [ NEXT_EX_DATE ] ) #NEWLINE# cols [ DAYS_SINCE_PREV_EX_DATE ] = self . _compute_busday_offsets ( cols [ PREVIOUS_EX_DATE ] ) #NEWLINE# return self