You can use the item()
method on a NumPy array to retrieve a single item as a standard Python scalar (such as an integer). Here's an example:
main.py161 chars10 lines
This will allow you to obtain a single item from a NumPy array as a simple integer.
gistlibby LogSnag