def METHOD_NAME(y: Float64Array, x: Float64Array) -> Float64Array:
    """
    Projection of y on x from y
    Parameters
    ----------
    y : ndarray
        Array to project (nobs by nseries)
    x : ndarray
        Array to project onto (nobs by nvar)
    Returns
    -------
    ndarray
        Projected values of y (nobs by nseries)
    """
    if x.shape[1] == 0:
        return np.zeros_like(y)
    return x @ (np.linalg.pinv(x) @ y)