I dont know why, but the query would not do anything (and return no errors) if it was located anywhere else. Even putting the engine intialization below import pandas results in the query (and all my code) not working, but it seems I can put the initialization below some imports like dotenv and openpyxl?? I'm new to SQL/MySQL but I have no clue what the issue might be stemming from, I would appreciate any help.
https://github.com/PotatoShaga/DotaApi (at the top of script.py)