def save_action_memory(self):
    if (len(self.df.tic.unique()) > 1):
        date_list = self.date_memory[:(- 1)]
        df_date = pd.DataFrame(date_list)
        df_date.columns = ['date']
        action_list = self.actions_memory
        df_actions = pd.DataFrame(action_list)
        df_actions.columns = self.data.tic.values
        df_actions.index = df_date.date
    else:
        date_list = self.date_memory[:(- 1)]
        action_list = self.actions_memory
        df_actions = pd.DataFrame({'date': date_list, 'actions': action_list})
    return df_actions
def save_action_memory(self):
    if (len(self.df.tic.unique()) > 1):
        date_list = self.date_memory[:(- 1)]
        df_date = pd.DataFrame(date_list)
        df_date.columns = ['date']
        action_list = self.actions_memory
        df_actions = pd.DataFrame(action_list)
        df_actions.columns = self.data.tic.values
        df_actions.index = df_date.date
    else:
        date_list = self.date_memory[:(- 1)]
        action_list = self.actions_memory
        df_actions = pd.DataFrame({'date': date_list, 'actions': action_list})
    return df_actions