EXPAND ALL
  • Home

select

Returns: BOOLEAN

Return v1 if s else v2

Arguments

VariableTypeDescription
sBOOLEANThe selector value
v1BOOLEAN / INT64 / FLOAT64 / TIME64NS / STRINGThe return value when s is true
v2BOOLEAN / INT64 / FLOAT64 / TIME64NS / STRINGThe return value when s is false

Examples:

# Explicit call.
df.val = px.select(df.select_left, df.left, df.right)
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.