Skip to content

Commit

Permalink
Revert Pandas 1.3.0 Compatibility Patch (#3378)
Browse files Browse the repository at this point in the history
* OSSEVALML-135 Revert Pandas 1.3.0 Compatibility Patch

* remove unused import

* update release notes
  • Loading branch information
Frank LaNasa authored Mar 17, 2022
1 parent d6af026 commit 49d5444
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions evalml/pipelines/components/estimators/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 49d5444

Please sign in to comment.