Skip to content Skip to sidebar Skip to footer

Nested Loops In Python And Csv File

I have a python lambda with nested for loop def lambda_handler(event, context): acc_ids = json.loads(os.environ.get('ACC_ID')) with open('/tmp/newcsv.csv', mode='w', newli

Solution 1:

Turns out the loop and the lambda were correct. The timeout on the lambda function was set to 10 secs and it never reached the code to upload the file. Increasing the timeout on lambda fixed my problem


Post a Comment for "Nested Loops In Python And Csv File"