def __array_prepare__(self, result, context=None):

        # nice error message for non-ufunc types
        if context is not None and not isinstance(self._values, np.ndarray):
            obj = context[1][0]
            raise TypeError("{obj} with dtype {dtype} cannot perform "
                            "the numpy op {op}".format(
                                obj=type(obj).__name__,
                                dtype=getattr(obj, 'dtype', None),
                                op=context[0].__name__))
        return result

    # complex
An iterator over the results from applying this QuerySet to the
dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.__array_prepare__--crossover with--dataset/ETHPy150Open charles-vdulac/django-roa/django_roa/db/query.py/RemoteQuerySet.iterator