What is the correct way to read time series data in csv format which is sent to AWS Lambda through API Getaway?
import pandas as pd
def lambda_handler(event, context)
    data = pd.read_csv(event['body'], index_col='time', parse_dates=['time'])
I tried to use read_csv function to parse event body, but getting an error.
{
  "errorMessage": "'body'",
  "errorType": "KeyError",
  "requestId": "d7759f9e-4ef6-4ffa-bc9c-bf9379b47d58",
  "stackTrace": [
    "  File \"/var/task/lambda_function.py\", line 6, in lambda_handler\n    v = event['body'].read()\n"
  ]
}
 
    