Skip to content

Commit a33ccb3

Browse files
committed
refactor(api)!: ntile function and method is now positional-only
1 parent 8ec0d11 commit a33ccb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ibis/expr/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ def cume_dist() -> ir.FloatingColumn:
14141414
return ops.CumeDist().to_expr()
14151415

14161416

1417-
def ntile(buckets: int | ir.IntegerValue) -> ir.IntegerColumn:
1417+
def ntile(buckets: int | ir.IntegerValue, /) -> ir.IntegerColumn:
14181418
"""Return the integer number of a partitioning of the column values.
14191419
14201420
Parameters

ibis/expr/types/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ def cume_dist(self) -> Column:
25482548
"""
25492549
return ibis.cume_dist().over(order_by=self)
25502550

2551-
def ntile(self, buckets: int | ir.IntegerValue) -> ir.IntegerColumn:
2551+
def ntile(self, buckets: int | ir.IntegerValue, /) -> ir.IntegerColumn:
25522552
"""Return the integer number of a partitioning of the column values.
25532553
25542554
Parameters

0 commit comments

Comments
 (0)