Last active
July 14, 2019 18:19
-
-
Save jordan-chalupka/c01159c45556e9967283c4054bcffcf5 to your computer and use it in GitHub Desktop.
array.ndim Lamdba handler
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 numpy as np | |
def lambda_handler(event, context): | |
input_array = np.array(event['array']) | |
num_dimensions = input_array.ndim | |
return num_dimensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment