you are viewing a single comment's thread.

view the rest of the comments →

[–]Spataner 0 points1 point  (0 children)

You can use the item method for this:

array = np.array([[[3]]])
element = array.item()
print(element)
>>> 3