I want to return a csv file that I created in aws lambda function
import json
def lambda_handler(event, context):
myFile = df.to_csv('sample.csv)
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
This is the default response, how can I return myFile in response