Пример #1
0
 def remove_cols_and_make_calculations(self, df):
     df = utl.date_removal(df, vmc.date, self.p[vmc.startdate],
                           self.p[vmc.enddate])
     df = ad_cost_calculation(df)
     df = utl.col_removal(df, self.key, self.p[vmc.dropcol])
     df = utl.apply_rules(df, self.vm_rules, utl.POST, **self.p)
     return df
Пример #2
0
 def merge_df_cleaning(df, first_row, last_row, date_col,
                       start_date, end_date):
     df = utl.first_last_adj(df, first_row, last_row)
     df = utl.data_to_type(df, date_col=date_col)
     df = utl.date_removal(df, date_col[0], start_date, end_date)
     return df