The `OrdinalEncoder.transform` function is a method provided by the `sklearn.preprocessing` module in Python. It is used to transform categorical variables into ordinal integers. This method takes an input dataset and replaces the categorical values with corresponding unique integers. The resulting transformed dataset can then be used for further analysis or modeling purposes.
Python OrdinalEncoder.transform - 31 examples found. These are the top rated real world Python examples of sklearn.preprocessing.OrdinalEncoder.transform extracted from open source projects. You can rate examples to help us improve the quality of examples.