def _wrap_results(self, results, blocks, obj):

        final = []
        for result, block in zip(results, blocks):

            result = self._wrap_result(result, block=block, obj=obj)
            if result.ndim == 1:
                return result
            final.append(result)

        if not len(final):
            return obj.astype('float64')
        return pd.concat(final, axis=1).reindex(columns=obj.columns)
wrap the results
dataset/ETHPy150Open pydata/pandas/pandas/core/window.py/_Window._wrap_results