Skip to content

Commit 080425f

Browse files
authored
add right operations (#283)
1 parent 723cf2f commit 080425f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

spec/API_specification/dataframe_api/column_object.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,25 @@ def __divmod__(self, other: Column | Scalar) -> tuple[Column, Column]:
469469
Column
470470
"""
471471

472+
def __radd__(self: Column, other: Column | Scalar) -> Column:
473+
...
474+
def __rsub__(self: Column, other: Column | Scalar) -> Column:
475+
...
476+
def __rmul__(self, other: Column | Scalar) -> Column:
477+
...
478+
def __rtruediv__(self, other: Column | Scalar) -> Column:
479+
...
480+
def __rand__(self: Column, other: Column | bool) -> Column:
481+
...
482+
def __ror__(self: Column, other: Column | bool) -> Column:
483+
...
484+
def __rfloordiv__(self, other: Column | Scalar) -> Column:
485+
...
486+
def __rpow__(self, other: Column | Scalar) -> Column:
487+
...
488+
def __rmod__(self, other: Column | Scalar) -> Column:
489+
...
490+
472491
def __invert__(self: Column) -> Column:
473492
"""
474493
Invert truthiness of (boolean) elements.

spec/API_specification/dataframe_api/dataframe_object.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,25 @@ def __divmod__(self, other: Scalar) -> tuple[DataFrame, DataFrame]:
617617
"""
618618
...
619619

620+
def __radd__(self, other: Scalar) -> DataFrame:
621+
...
622+
def __rsub__(self, other: Scalar) -> DataFrame:
623+
...
624+
def __rmul__(self, other: Scalar) -> DataFrame:
625+
...
626+
def __rtruediv__(self, other: Scalar) -> DataFrame:
627+
...
628+
def __rand__(self, other: Scalar) -> DataFrame:
629+
...
630+
def __ror__(self, other: Scalar) -> DataFrame:
631+
...
632+
def __rfloordiv__(self, other: Scalar) -> DataFrame:
633+
...
634+
def __rpow__(self, other: Scalar) -> DataFrame:
635+
...
636+
def __rmod__(self, other: Scalar) -> DataFrame:
637+
...
638+
620639
def __invert__(self) -> DataFrame:
621640
"""
622641
Invert truthiness of (boolean) elements.

0 commit comments

Comments
 (0)