Skip to content

Commit 886b2d1

Browse files
gforsythcpcloud
authored andcommitted
chore(api): remove deprecated where methodism
BREAKING CHANGE: `where` is removed. Use `ibis.ifelse` instead.
1 parent 65f0973 commit 886b2d1

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ibis/expr/api.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@
179179
"union",
180180
"uuid",
181181
"watermark",
182-
"where",
183182
"window",
184183
)
185184

@@ -2364,27 +2363,6 @@ def ifelse(condition: Any, true_expr: Any, false_expr: Any) -> ir.Value:
23642363
return condition.ifelse(true_expr, false_expr)
23652364

23662365

2367-
@util.deprecated(instead="use `ibis.ifelse` instead", as_of="7.0")
2368-
def where(cond, true_expr, false_expr) -> ir.Value:
2369-
"""Construct a ternary conditional expression.
2370-
2371-
Parameters
2372-
----------
2373-
cond
2374-
Boolean conditional expression
2375-
true_expr
2376-
Expression to return if `cond` evaluates to `True`
2377-
false_expr
2378-
Expression to return if `cond` evaluates to `False` or `NULL`
2379-
2380-
Returns
2381-
-------
2382-
Value : ir.Value
2383-
The value of `true_expr` if `arg` is `True` else `false_expr`
2384-
"""
2385-
return ifelse(cond, true_expr, false_expr)
2386-
2387-
23882366
@deferrable
23892367
def coalesce(*args: Any) -> ir.Value:
23902368
"""Return the first non-null value from `args`.

0 commit comments

Comments
 (0)