Collection.matches#

classmethod Collection.matches(other: type[Collection]) bool[source]#

Check whether this collection semantically matches another.

Parameters:

other – The collection to compare with.

Returns:

Whether the two collections are semantically equal.

Attention

For custom filters, reliable comparison results are only guaranteed if the filter always returns a static polars expression. Otherwise, this function may falsely indicate a match.