diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index a4166c5118..11df5750b1 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -10,6 +10,7 @@ * Fixed ``get_pipelines`` to reset pipeline threshold for binary cases :pr:`3360` * Changes * Update maintainers :pr:`3365` + * Revert pandas 1.3.0 compatibility patch :pr:`3378` * Documentation Changes * Fixed documentation links to point to correct pages :pr:`3358` * Testing Changes diff --git a/evalml/pipelines/components/estimators/estimator.py b/evalml/pipelines/components/estimators/estimator.py index 8763ba2817..a1a078b530 100644 --- a/evalml/pipelines/components/estimators/estimator.py +++ b/evalml/pipelines/components/estimators/estimator.py @@ -2,7 +2,6 @@ from abc import abstractmethod import pandas as pd -from pandas.core.indexes import range from evalml.exceptions import MethodPropertyNotFoundError from evalml.model_family import ModelFamily @@ -92,8 +91,6 @@ def predict(self, X): """ try: X = infer_feature_types(X) - if isinstance(X.columns, range.RangeIndex): - X.columns = [x for x in X.columns] predictions = self._component_obj.predict(X) except AttributeError: raise MethodPropertyNotFoundError(