def bool(self):
    '\n        Return the bool of a single element PandasObject.\n\n        This must be a boolean scalar value, either True or False.  Raise a\n        ValueError if the PandasObject does not have exactly 1 element, or that\n        element is not boolean\n        '
    v = self.squeeze()
    if isinstance(v, (bool, np.bool_)):
        return bool(v)
    elif is_scalar(v):
        raise ValueError('bool cannot act on a non-boolean single element {0}'.format(self.__class__.__name__))
    self.__nonzero__()
Return the bool of a single element PandasObject.

This must be a boolean scalar value, either True or False.  Raise a
ValueError if the PandasObject does not have exactly 1 element, or that
element is not boolean
def bool(self):
    '\n        Return the bool of a single element PandasObject.\n\n        This must be a boolean scalar value, either True or False.  Raise a\n        ValueError if the PandasObject does not have exactly 1 element, or that\n        element is not boolean\n        '
    v = self.squeeze()
    if isinstance(v, (bool, np.bool_)):
        return bool(v)
    elif is_scalar(v):
        raise ValueError('bool cannot act on a non-boolean single element {0}'.format(self.__class__.__name__))
    self.__nonzero__()