Skip to content

Commit 15d5f0a

Browse files
committed
DOC: added .item() to __nonzero__ error message
1 parent 16b3166 commit 15d5f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def empty(self):
556556
return not all(len(self._get_axis(a)) > 0 for a in self._AXIS_ORDERS)
557557

558558
def __nonzero__(self):
559-
raise ValueError("The truth value of an array is ambiguous. Use a.empty, a.any() or a.all().")
559+
raise ValueError("The truth value of an array is ambiguous. Use a.empty, a.item(), a.any() or a.all().")
560560

561561
__bool__ = __nonzero__
562562

0 commit comments

Comments
 (0)