<jupyter_start><jupyter_text>merge true summary and review<jupyter_code>true_summary=pd.read_csv('../../true_summary/hotel_true_summs.csv',index_col=0)
review_df=pd.read_csv(os.path.join(dataset_path,'review.csv'),index_col=0)
pd.merge(review_df.head(),true_summary,on='hotel_url',how='inner')
business_df=pd.read_csv(os.path.join(dataset_path,'business.csv'),index_col=0)
business_df=business_df.drop_duplicates(['hotel_url']).reset_index(drop=True)
business_df=pd.merge(business_df,true_summary,on='hotel_url',how='inner')
business_df.to_csv(os.path.join(dataset_path,'business.csv'))
import os
os.getcwd()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16927899686520376, 'fraction_numerical': 0.004702194357366771, 'mean_word_length': 14.585365853658537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '430041', 'license': 'Apache-2.0', 'n_tokens_mistral': 250, 'n_tokens_neox': 249, 'n_words': 14, 'path': 'datasets/original_csv_data/true_summ/intersect.ipynb', 'repo_name': 'Saibo-creator/Text-Summrize-Project', 'size': '638'}