<jupyter_start><jupyter_text>Checkpoint 'df_new_obs'<jupyter_code>df_new_obs = model.predicted_outputs()
df_new_obs<jupyter_output><empty_output><jupyter_text>.execute()<jupyter_code>cursor.execute('SELECT * FROM predicted_outputs;')<jupyter_output><empty_output><jupyter_text>Creating the INSERT Statement<jupyter_code>insert_query = 'INSERT INTO predicted_outputs VALUES '
insert_query
df_new_obs.shape
df_new_obs['Age']
df_new_obs[df_new_obs.columns.values[6]][0]
for i in range(df_new_obs.shape[0]):
    insert_query += '(' 
    
    for j in range(df_new_obs.shape[1]):
        insert_query += str(df_new_obs[df_new_obs.columns.values[j]][i]) + ', '
    
    insert_query = insert_query[:-2] + '), '  
insert_query
insert_query = insert_query[:-2] + ';'
insert_query
cursor.execute(insert_query)
conn.commit()
conn.close()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13885647607934656, 'fraction_numerical': 0.007001166861143524, 'mean_word_length': 7.411764705882353, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '227914', 'license': 'Apache-2.0', 'n_tokens_mistral': 338, 'n_tokens_neox': 328, 'n_words': 37, 'path': '18 - SQL + Tableau + Python/5_Connecting Python and SQL/10_Moving Data from Python to SQL - Part III (2:45)/5.10 Absenteeism Exercise - Integration.ipynb', 'repo_name': 'olayinka04/365-data-science-courses', 'size': '857'}