Suppose I have 1x1x1x1x... array and wish to convert it to scalar?
How do I do it?
squeeze does not help.
squeeze
import numpy as np ma
>>> float(np.array([[[[1]]]])) 1.