votes up 1

The remainder keyword needs to be one of 'drop', 'passthrough', or estimator. '%s' was passed instead

Package:
Exception Class:
ValueError

Raise code

""" remaining columns.
        """
        is_transformer = ((hasattr(self.remainder, "fit")
                           or hasattr(self.remainder, "fit_transform"))
                          and hasattr(self.remainder, "transform"))
        if (self.remainder not in ('drop', 'passthrough')
                and not is_transformer):
            raise ValueError(
                "The remainder keyword needs to be one of 'drop', "
                "'passthrough', or estimator. '%s' was passed instead" %
                self.remainder)

        self._n_features = X.shape[1]
        cols = set(chain(*self._transformer_to_input_indices.values()))
        remaining = sorted(set(range(self._n_features)) - cols)
        self
😲 Agile task management is now easier than calling a taxi. #Tracklify
🙏 Scream for help to Ukraine
Today, 2nd July 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 1 votes down

Mar 12, 2022 sushovankhatua7999 answer

Add a possible fix

Please authorize to post fix