EXPAND ALL
  • Home

px.equals_any

Returns true if the value is in the list.

Check equality of the input value with every element of a list.

Arguments

NameTypeDescription
valuepx.ExprThe value to compare.
comparisonsList[px.Expr]The list of values to check equality to the value.

Returns

px.Expr: An expression that evaluates to true if the value is found in the list.

Examples

df.val = px.equals_any(df.remote_addr, ['10.0.0.1', '10.0.0.2'])

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.