SyntaxFix
Write A Post
Hire A Developer
Questions
Also, you could try to use ndarray.item(), for example, arr.item((0, 0))(rowid+colid to index) or arr.item(0)(flatten index), its doc https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.item.html
ndarray.item()
arr.item((0, 0))
arr.item(0)