def item(self):
    '\n        Return the first element of the underlying data as a Python scalar.\n\n        Returns\n        -------\n        scalar\n            The first element of %(klass)s.\n\n        Raises\n        ------\n        ValueError\n            If the data is not length-1.\n        '
    if (len(self) == 1):
        return next(iter(self))
    raise ValueError('can only convert an array of size 1 to a Python scalar')
Return the first element of the underlying data as a Python scalar.

Returns
-------
scalar
    The first element of %(klass)s.

Raises
------
ValueError
    If the data is not length-1.
def item(self):
    '\n        Return the first element of the underlying data as a Python scalar.\n\n        Returns\n        -------\n        scalar\n            The first element of %(klass)s.\n\n        Raises\n        ------\n        ValueError\n            If the data is not length-1.\n        '
    if (len(self) == 1):
        return next(iter(self))
    raise ValueError('can only convert an array of size 1 to a Python scalar')