option to make total df from data
@@ -380,8 +380,10 @@ class daily_age_analyzer(Analyzer):
df = df[cols]
return df
- def make_total_df(self):
+ def make_total_df(self, df=None):
'''Create dataframe totals'''
+
+ if df is None:
df = self.make_df()
cols = list(df.columns)
cum_cols = [c for c in cols if c.split('_')[0] == 'new']
