I recently downloaded Atom for running my python and sqlite codes however I am having trouble to access to my sqlite database via Atom. When I run a simple script, it errors out saying "no such table!". Is there any package I should install or can it be related to system variables? Any help is much appreciated, thanks in advance!
import sqlite3
from sqlalchemy import create_engine
import numpy as np
import sys
import pandas as pd
# connection to database
db = sqlite3.connect('my_db.db')
# cursor
cursor = db.cursor()
cursor.execute("""DROP TABLE IF EXISTS test""")
cursor.execute("""
CREATE TABLE test as
SELECT DISTINCT
x1,
x2
FROM my_db.my_table""")