From 7429d2bf16ab288a68480650d2c47136ae49a1a6 Mon Sep 17 00:00:00 2001 From: Tamar Grey Date: Tue, 4 Oct 2022 15:27:47 -0500 Subject: [PATCH] remove commented code --- .../components/transformers/encoders/ordinal_encoder.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/evalml/pipelines/components/transformers/encoders/ordinal_encoder.py b/evalml/pipelines/components/transformers/encoders/ordinal_encoder.py index 425dcab1d7..937dfa0823 100644 --- a/evalml/pipelines/components/transformers/encoders/ordinal_encoder.py +++ b/evalml/pipelines/components/transformers/encoders/ordinal_encoder.py @@ -137,11 +137,6 @@ def fit(self, X, y=None): f"Column {col} specified in features_to_encode is not Ordinal in nature", ) - # Put features_to_encode in the same relative order as the columns in the dataframe - # self.features_to_encode = [ - # col for col in X.columns if col in self.features_to_encode - # ] - ww_logical_types = X.ww.logical_types categories = {} if len(self.features_to_encode) == 0: