<jupyter_start><jupyter_text><jupyter_code>from sqlalchemy import create_engine
import pandas as pd
!pip install pymysql
from sqlalchemy import create_engine
MYSQL_HOSTNAME = '172.16.58.3' # change this to your IP address which is found on your AZURE dashboard 
MYSQL_USER = 'dba'
MYSQL_PASSWORD = '<PASSWORD>'
MYSQL_DATABASE = 'AHIServer'

connection_string = f'mysql+pymysql://{MYSQL_USER}:{MYSQL_PASSWORD}@{MYSQL_HOSTNAME}/{MYSQL_DATABASE}'
engine = create_engine(connection_string)
csvfile = pd.read_csv('H1N1_Flu_Vaccines.csv')
csvfile
csvfile.to_sql('diabetic_data', con=engine, if_exists='append')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10725552050473186, 'fraction_numerical': 0.015772870662460567, 'mean_word_length': 8.76923076923077, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '615613', 'license': 'Apache-2.0', 'n_tokens_mistral': 247, 'n_tokens_neox': 242, 'n_words': 46, 'path': 'E2E.ipynb', 'repo_name': 'izumatthew/HHA504_E2E', 'size': '634'}