I am trying to write a df into Athena, but the created table is always empty. I use python 3.8 and windows 11 system. I use pyathena writing dataframes to Athena but problems have never occurred till now.
from pyathena import connect
from pyathena.pandas.util import to_sql
conn = connect(aws_access_key_id="KEY",
aws_secret_access_key="SKEY",
s3_staging_dir="STAGINGDIR", # query location dir
region_name="eu-central-1")
to_sql(df,
"TABLENAME",
conn,
"MYS3PATH",
schema="MYSCHEMA",
index=False,
if_exists="replace"
)