__bool__¶
- array.__bool__() bool ¶
Converts a zero-dimensional boolean array to a Python
bool
object.- Parameters:
self (array) – zero-dimensional array instance. Must have a boolean data type.
- Returns:
out (bool) – a Python
bool
object representing the single element of the array.