EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Return v1 if s else v2
Variable | Type | Description |
---|---|---|
s | BOOLEAN | The selector value |
v1 | BOOLEAN / INT64 / FLOAT64 / TIME64NS / STRING | The return value when s is true |
v2 | BOOLEAN / INT64 / FLOAT64 / TIME64NS / STRING | The return value when s is false |
# Explicit call.df.val = px.select(df.select_left, df.left, df.right)