my code is:
engine = sqlalchemy.create_engine("credentials")
connection = engine.connect()
day = 180601
query = "select * from Data where Name like '%{0}%'".format(str(day))
df = pd.DataFrame(connection.execute(query).fetchall())
but this doesn't work. when i type:
query = "select * from Data where Name like '%180601%'"
then repeat the same process, this works fine although they produce same queries. i want to change the days in a for loop.
Any ideas would be appreciated. Thanks in advance!