def _check_output(output, transpose=True):
    """Ensure output compatibility for the series returned by the smoother.

    Returns
    -------
    output : array
        Checked input.
    """

    if transpose:
        output = output.T

    if output.ndim == 1:
        output = output[None, :]

    return output