<jupyter_start><jupyter_text>Now write to SQL<jupyter_code>import connect_aws_db as cadb
import sqlalchemy
engine = cadb.connect_aws_db()
conn = engine.connect()
cmd = "DROP TABLE yelp_hotels"
result = conn.execute(cmd)
cmd = """
        CREATE TABLE yelp_hotels
        (
        hotel_id MEDIUMINT AUTO_INCREMENT,
        hotel_name VARCHAR(256),
        hotel_rating FLOAT,
        hotel_city VARCHAR(256),
        hotel_state VARCHAR(64),
        hotel_latitude FLOAT,
        hotel_longitude FLOAT,
        review_count INT,
        hotel_address VARCHAR(512),
        business_id VARCHAR(256),
        dogs_allowed BINARY,
        PRIMARY KEY (hotel_id)
        )
        """
        
result = conn.execute(cmd)
doghotels.to_sql('yelp_hotels', engine, if_exists='append', index=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08902439024390243, 'fraction_numerical': 0.01707317073170732, 'mean_word_length': 2.966183574879227, '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': '189792', 'license': 'MIT', 'n_tokens_mistral': 294, 'n_tokens_neox': 279, 'n_words': 55, 'path': 'code/yelp_hotels.ipynb', 'repo_name': 'mattgiguere/doglodge', 'size': '820'}