I am querying from aws athena using python script and pyathena library and I'm getting the correct output in the form of table.
Now the problem is I want to store the output in excel.
Can anyone suggest me, using python script how i can store output in Excel?
Here is the code that I am using for querying in aws athena:
from pyathena import connect
import os
import pandas as pd
%matplotlib inline
conn = connect(aws_access_key_id='*****',
aws_secret_access_key='*****',
s3_staging_dir='s3://****/',
region_name='us-west-1')
cursor = conn.cursor()
%time cursor.execute("SELECT * from my_table;")
Thanks in advance...