Referencing Event passed into AWS Lambda

import pandas as pd
import json

def lambda_handler(event, context):
# TODO implement
s = pd.Series([1, 3, 5, 7, 6, 8])
print("printing pandas s:")
print(s)
print("done printing pandas s")
print("about to print all keys and values in event: ")
for key, value in event.items():
print(f"{key}: {value}")
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
Scroll to Top