def save_dataframe(self, df): with pd.HDFStore(''.join([TwoSigmaFinModTools._save_path, 'train_debug', self.timestamp, '.h5']), "w") as train: train.put("train_debug", df)