Skip to content

Column.is_in #159

Closed
Closed
@MarcoGorelli

Description

@MarcoGorelli

In the last call it was brought up that perhaps we should add Column.is_in

This can be achieved with the existing Standard methods:

result = column == values[0]
for value in values[1:]:
    if math.isnan(value):
        result |= column.isnan()
    elif value is namespace.null:
        result |= column.isnull()
    else:
        result |= column == value

so it really just be a convenience method. No objections to adding it anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions