Hey all, I am having trouble getting this code to run.
Hey all, I am having trouble getting this code to run. I am trying to go into my S3 bucket and convert my .xlsx file to .csv so i can easily upload it to redshift. My code currently looks like the below, does anyone know an easy way to convert files in s3?
data_xls = pd.read_excel('s3://syznyctest/file_path/file_name.xlsx',
'sheet name', index_col=None)
data_xls.to_csv('s3://syznyctest/new_file_path/new_file_name.csv', encoding='utf8',index=False)
data_xls = pd.read_excel('s3://syznyctest/file_path/file_name.xlsx',
'sheet name', index_col=None)
data_xls.to_csv('s3://syznyctest/new_file_path/new_file_name.csv', encoding='utf8',index=False)
No any search results
You already invited:
2 Answers
Alzico
Upvotes from:
Bobby
Upvotes from: