I have exported several tables from SQLite into a dictionary. Is there a way to extract all of the dataframes that are now in the dictionary and create one dataframe for each ? (ex. df1, df2, df3, etc...)
conn = sq3.connect('C:/Users/database.db')
cur = conn.cursor()
cur.execute("SELECT name FROM sqlite_master WHERE type='table';")
tablenames = cur.fetchall()
df_dict = {}
for tablename in tablenames:
tablename = tablename[0]
df_dict[tablename] = pd.read_sql_query('SELECT * FROM %s' % tablename, conn).set_index('date')