Skip to content

Commit

Permalink
Simplify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller committed Aug 3, 2023
1 parent 4f50ea4 commit 17f6ae5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,7 @@ def __bool__(self) -> NoReturn:
)

def _comparison_error(self, other: Any) -> NoReturn:
raise TypeError(
"Cannot compare ambiguous LazyFrame structures; call .collect() "
"to materialize to DataFrame before comparison."
)
raise TypeError("Cannot compare LazyFrames; call .collect() to materialize.")

__eq__ = _comparison_error
__ne__ = _comparison_error
Expand Down

0 comments on commit 17f6ae5

Please sign in to comment.