def get_out_dtype(self, dtype: np.dtype) -> np.dtype:
    how = self.how
    if (how == 'rank'):
        out_dtype = 'float64'
    elif is_numeric_dtype(dtype):
        out_dtype = f'{dtype.kind}{dtype.itemsize}'
    else:
        out_dtype = 'object'
    return np.dtype(out_dtype)
def get_out_dtype(self, dtype: np.dtype) -> np.dtype:
    how = self.how
    if (how == 'rank'):
        out_dtype = 'float64'
    elif is_numeric_dtype(dtype):
        out_dtype = f'{dtype.kind}{dtype.itemsize}'
    else:
        out_dtype = 'object'
    return np.dtype(out_dtype)