- %sql insert into all_causes_deaths(week, year, date_up_to, nation, deaths) values ({week}, {year_i}, :dut, 'Scotland', {deaths})
+ query_string = f'''insert into
+ all_causes_deaths(week, year, date_up_to, nation, deaths)
+ values ({week}, {year_i}, '{dut}', 'Scotland', {deaths});'''
+ with engine.connect() as connection:
+ connection.execute(query_string)