Skip to content

Commit

Permalink
Merge pull request #236 from frreiss/branch-42430_extend_workaround
Browse files Browse the repository at this point in the history
Remove version check from workaround for Pandas #42430
  • Loading branch information
frreiss committed Jul 28, 2021
2 parents 398e1ee + cd4c670 commit 435ab0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions text_extensions_for_pandas/array/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ def __getitem__(self, item) -> Union["TensorArray", "TensorElement"]:
return TensorElement(value)
else:
# BEGIN workaround for Pandas issue #42430
if (pd.__version__ == "1.3.0" and isinstance(item, tuple) and len(item) > 1
and item[0] == Ellipsis):
if isinstance(item, tuple) and len(item) > 1 and item[0] == Ellipsis:
if len(item) > 2:
# Hopefully this case is not possible, but can't be sure
raise ValueError(f"Workaround Pandas issue #42430 not implemented "
Expand Down

0 comments on commit 435ab0f

Please sign in to comment.