<jupyter_start><jupyter_text>merge true_summary_df and business_df<jupyter_code>true_summary_df=pd.read_csv('../true_summary/hotel_true_summs.csv',index_col=0)
true_summary_df
#merge true_summary with business_df 
business_df=business_df.drop_duplicates(['hotel_url']).reset_index(drop=True)
business_df=pd.merge(business_df,true_summary_df,on='hotel_url',how='inner')
business_df
#drop records having text= empty(127 row empty in total)
review_df=review_df[review_df['text'].apply(lambda x: len(x))>0]
#output to json
review_df.to_json(os.path.join(dataset_path,'review.json'),orient='records')
business_df.to_json(os.path.join(dataset_path,'business.json'),orient='records')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1388101983002833, 'fraction_numerical': 0.007082152974504249, 'mean_word_length': 13.729166666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '216942', 'license': 'Apache-2.0', 'n_tokens_mistral': 262, 'n_tokens_neox': 259, 'n_words': 29, 'path': 'datasets/original_csv_true_summ/mask_with_true_summ.ipynb', 'repo_name': 'Saibo-creator/Text-Summrize-Project', 'size': '706'}