@staticmethod
def _column_checks(ts1, ts2):
    """
        This function raises an error if the columns on the two timeseries
        do not match.
        """
    status = False
    if len(ts1.tseries.shape) == 2 and len(ts2.tseries.shape) != 2:
        status = True
    elif len(ts1.tseries.shape) != 2 and len(ts2.tseries.shape) == 2:
        status = True
    elif len(ts1.tseries.shape) == 2 and len(ts2.tseries.shape) == 2:
        if ts1.tseries.shape[1] != ts2.tseries.shape[1]:
            status = True
    else:
        pass
    if status:
        raise ValueError(' '.join([
            'Both timeseries must have the same columns:', '%s vs %s']) % (
            ts1.tseries.shape, ts2.tseries.shape))
