def to_csv(self, csv_file_path, sep): df = self.to_df() df['story body'] = df['lead parag'] + ' ' + df['story body'] print 'Parsed total', len(df), 'rows' features = Features(df) features.add_sentiment() features.add_count_feats() features.add_pattern_counts() features.add_tfidf() features.clean() features.normalize_new_data() features.df.to_csv(path_or_buf=csv_file_path, sep=sep, encoding='utf-8', index=False, quoting=csv.QUOTE_ALL)