@@ -54,7 +54,7 @@ def __neg__(self) -> NumericValue:
54
54
"""
55
55
return self .negate ()
56
56
57
- def round (self , digits : int | IntegerValue = 0 ) -> NumericValue :
57
+ def round (self , digits : int | IntegerValue = 0 , / ) -> NumericValue :
58
58
"""Round values to an indicated number of decimal places.
59
59
60
60
Parameters
@@ -102,7 +102,7 @@ def round(self, digits: int | IntegerValue = 0) -> NumericValue:
102
102
│ 2 │
103
103
│ 3 │
104
104
└──────────────────┘
105
- >>> t.values.round(digits= 1)
105
+ >>> t.values.round(1)
106
106
┏━━━━━━━━━━━━━━━━━━┓
107
107
┃ Round(values, 1) ┃
108
108
┡━━━━━━━━━━━━━━━━━━┩
@@ -116,7 +116,7 @@ def round(self, digits: int | IntegerValue = 0) -> NumericValue:
116
116
"""
117
117
return ops .Round (self , digits ).to_expr ()
118
118
119
- def log (self , base : NumericValue | None = None ) -> NumericValue :
119
+ def log (self , base : NumericValue | None = None , / ) -> NumericValue :
120
120
r"""Compute $\log_{\texttt{base}}\left(\texttt{self}\right)$.
121
121
122
122
Parameters
@@ -150,7 +150,7 @@ def log(self, base: NumericValue | None = None) -> NumericValue:
150
150
>>> import ibis
151
151
>>> ibis.options.interactive = True
152
152
>>> t = ibis.memtable({"values": [10, 100, 1000]})
153
- >>> t.values.log(base= 10)
153
+ >>> t.values.log(10)
154
154
┏━━━━━━━━━━━━━━━━━┓
155
155
┃ Log(values, 10) ┃
156
156
┡━━━━━━━━━━━━━━━━━┩
@@ -532,7 +532,7 @@ def atan(self) -> NumericValue:
532
532
"""
533
533
return ops .Atan (self ).to_expr ()
534
534
535
- def atan2 (self , other : NumericValue ) -> NumericValue :
535
+ def atan2 (self , other : NumericValue , / ) -> NumericValue :
536
536
"""Compute the two-argument version of arc tangent.
537
537
538
538
Examples
@@ -716,7 +716,7 @@ def __rmod__(self, other: NumericValue) -> NumericValue:
716
716
717
717
rmod = __rmod__
718
718
719
- def point (self , right : int | float | NumericValue ) -> ir .PointValue :
719
+ def point (self , right : int | float | NumericValue , / ) -> ir .PointValue :
720
720
"""Return a point constructed from the coordinate values.
721
721
722
722
Constant coordinates result in construction of a `POINT` literal or
@@ -1197,6 +1197,8 @@ def cumsum(self, *, where=None, group_by=None, order_by=None) -> NumericColumn:
1197
1197
def bucket (
1198
1198
self ,
1199
1199
buckets : Sequence [int ],
1200
+ / ,
1201
+ * ,
1200
1202
closed : Literal ["left" , "right" ] = "left" ,
1201
1203
close_extreme : bool = True ,
1202
1204
include_under : bool = False ,
@@ -1268,6 +1270,7 @@ def bucket(
1268
1270
1269
1271
def histogram (
1270
1272
self ,
1273
+ * ,
1271
1274
nbins : int | None = None ,
1272
1275
binwidth : float | None = None ,
1273
1276
base : float | None = None ,
@@ -1510,14 +1513,14 @@ def as_interval(
1510
1513
"""
1511
1514
return ops .IntervalFromInteger (self , unit ).to_expr ()
1512
1515
1513
- @deprecated (as_of = "10.0" , instead = "use as_timestamp() instead" )
1516
+ @deprecated (as_of = "10.0" , removed_in = "11.0" , instead = "use as_timestamp() instead" )
1514
1517
def to_timestamp (
1515
1518
self ,
1516
1519
unit : Literal ["s" , "ms" , "us" ] = "s" ,
1517
1520
) -> ir .TimestampValue :
1518
1521
return self .as_timestamp (unit = unit )
1519
1522
1520
- @deprecated (as_of = "10.0" , instead = "use as_interval() instead" )
1523
+ @deprecated (as_of = "10.0" , removed_in = "11.0" , instead = "use as_interval() instead" )
1521
1524
def to_interval (
1522
1525
self ,
1523
1526
unit : Literal ["Y" , "M" , "W" , "D" , "h" , "m" , "s" , "ms" , "us" , "ns" ] = "s" ,
0 commit comments