Last active
August 1, 2019 03:16
-
-
Save benmcp/ec89cf71f700d9d9c36f9c431ca703fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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