I\'m using AWS Athena to query raw data from S3. Since Athena writes the query output into S3 output bucket I used to do:
df = pd.read_csv(OutputLocation)
Maybe you can try to use pandas read_sql and pyathena:
from pyathena import connect import pandas as pd conn = connect(s3_staging_dir='s3://bucket/folder',region_name='region') df = pd.read_sql('select * from database.table', conn) #don't change the "database.table"