Пример #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 combine_data(self, df):
     df = combining_data(df, self.key, vmc.datadatecol, **self.p)
     df = utl.data_to_type(df, date_col=vmc.datadatecol)
     df = utl.apply_rules(df, self.vm_rules, utl.PRE, **self.p)
     df = combining_data(df, self.key, vmc.datafloatcol, **self.p)
     df = utl.data_to_type(df, vmc.datafloatcol, vmc.datadatecol)
     return df