I'm trying to save my pandas dataframe as a SQL file
I followed the documentation and tried
from sqlalchemy import create_engine
engine = create_engine('sqlite:///:memory:')
df.to_sql('filename.sql', engine, chunksize=1000)
However, when I check the directory with os.listdir(), the file is not there
to_sqlmethod, at least I never used it that way. I always use it to export to a database.