'Check the inputs before transforming'

def _check_is_fitted(self, X):

    check_is_fitted(self, 'quantiles_')
    if (X.shape[1] != self.quantiles_.shape[1]):
        raise ValueError('X    does    not    have    the    same    number    of    features    as    the    previously    fitted    data.    Got    {}    instead    of    {}.'.format(X.shape[1], self.quantiles_.shape[1]))
