Skip to content

Instantly share code, notes, and snippets.

@knapply
Created November 6, 2018 18:58
Show Gist options
  • Save knapply/6a49d876e668290c571aa08c9ca92598 to your computer and use it in GitHub Desktop.
Save knapply/6a49d876e668290c571aa08c9ca92598 to your computer and use it in GitHub Desktop.
NumPy array size
import numpy as np
numpy_array = np.array(range(1, 21))
result = np.size(numpy_array)
print(result)
#> 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment