binary_operations
Binary (two reference arguments) transformations.
This module contains the base class and concrete classes for binary transformations, those that can take two reference arguments (i.e. column or transformation names).
Classes
AdditionTransformation
class AdditionTransformation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Represents the addition of two columns or of a constant to a column.
Method generated by attrs for class AdditionTransformation.
Inherited members
BinaryOperation
class BinaryOperation( *, name: Optional[str] = None, output: bool = False, arg1: Any, arg2: Any,):
Base two-arg transformation.
The base abstract class for all Binary Operation Transformations.
Arguments
arg1
: The first argumentarg2
: The second argument
Method generated by attrs for class BinaryOperation.
Ancestors
Subclasses
Inherited members
ComparisonTransformation
class ComparisonTransformation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Represents the comparison between two columns or of one column and a constant.
The resulting output should be:
- -1 if arg1 < arg2
- 0 if arg1 == arg2
- +1 if arg1 > arg2
Method generated by attrs for class ComparisonTransformation.
Inherited members
DivisionTransformation
class DivisionTransformation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Column division transformation.
Represents the division of one column by another or of one column by a constant.
Method generated by attrs for class DivisionTransformation.
Inherited members
MultiplicationTransformation
class MultiplicationTransformation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Represents the multiplication of two columns or of a column and a constant.
Method generated by attrs for class MultiplicationTransformation.
Inherited members
NumericBinaryOperation
class NumericBinaryOperation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Base two-arg operation involving numbers.
This class represents any BinaryOperation where arg2 can be numeric or a second column name such as addition, multiplication, etc.
Arguments
arg1
: The first argument (column name).arg2
: The second argument (column name or numeric value).
Method generated by attrs for class NumericBinaryOperation.
Ancestors
Subclasses
Inherited members
SubtractionTransformation
class SubtractionTransformation( *, name: Optional[str] = None, output: bool = False, arg1: str, arg2: Union[float, str],):
Column subtracting transformation.
Represents the subtraction of one column from another or of a constant from a column.
Method generated by attrs for class SubtractionTransformation.