Skip to content

Instantly share code, notes, and snippets.

@benmcp
Last active August 1, 2019 03:16
Show Gist options
  • Save benmcp/ec89cf71f700d9d9c36f9c431ca703fe to your computer and use it in GitHub Desktop.
Save benmcp/ec89cf71f700d9d9c36f9c431ca703fe to your computer and use it in GitHub Desktop.
import json
import numpy as np
def hello(event, context):
arr = np.arange(15).reshape(3, 5)
b = arr.tolist()
body = {
"result": b
}
response = {
"statusCode": 200,
"body":json.dumps(body)
}
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment