<jupyter_start><jupyter_text>Postgres Setup<jupyter_code># Configure settings for RDS
mode = "append"
jdbc_url="jdbc:postgresql://database-1-instance-1.cnfb0rdvmbzb.us-east-1.rds.amazonaws.com:5432/postgres"
config = {"user":"postgres", 
          "password": "", 
          "driver":"org.postgresql.Driver"}
# Write DataFrame to active_user table in RDS
review_id_tabledf.write.jdbc(url=jdbc_url, table='review_id_table', mode=mode, properties=config)
products_tabledf.write.jdbc(url=jdbc_url, table='products', mode=mode, properties=config)
customer_tabledf.write.jdbc(url=jdbc_url, table='customers', mode=mode, properties=config)
vine_tabledf.write.jdbc(url=jdbc_url, table="vine_table", mode=mode, properties=config)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14380825565912117, 'fraction_numerical': 0.010652463382157125, 'mean_word_length': 7.847058823529411, 'pattern_counts': {'":': 3, '<': 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': '138669', 'license': 'ADSL', 'n_tokens_mistral': 280, 'n_tokens_neox': 263, 'n_words': 36, 'path': 'Level-1/GiftCard.ipynb', 'repo_name': 'Infinity-29/BigData_Challenge', 'size': '751'}