Skip to content

Commit

Permalink
Use pandas Index.equals in check_if_pandas_series (#963)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Voigt <paul.voigt@weidmueller.com>
  • Loading branch information
PaulVoigt and paulv-wm authored Feb 21, 2023
1 parent da06274 commit 1278119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsfresh/feature_selection/significance_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __check_if_pandas_series(x, y):
raise TypeError("x should be a pandas Series")
if not isinstance(y, pd.Series):
raise TypeError("y should be a pandas Series")
if not list(y.index) == list(x.index):
if not y.index.equals(x.index):
raise ValueError("X and y need to have the same index!")


Expand Down

0 comments on commit 1278119

Please sign in to comment.