def apply(self, func, convert_dtype=True, args=(), **kwds):
        if len(self) == 0:
            return self._constructor(dtype=self.dtype,
                                     index=self.index).__finalize__(self)

        if kwds or args and not isinstance(func, np.ufunc):
            f = lambda x: func(x, *args, **kwds)
        else:
            f = func

        if isinstance(f, np.ufunc):
            return f(self)

        if is_extension_type(self.dtype):
            mapped = self._values.map(f)
        else:
            values = self.asobject
            mapped = lib.map_infer(values, f, convert=convert_dtype)

        if len(mapped) and isinstance(mapped[0], Series):
            from pandas.core.frame import DataFrame
            return DataFrame(mapped.tolist(), index=self.index)
        else:
            return self._constructor(mapped,
                                     index=self.index).__finalize__(self)
state: must be selected
dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.apply--crossover with--dataset/ETHPy150Open scanner/asimap/asimap/client.py/Authenticated.do_close