operators.bitwise_xor_op: " ^ ",
operators.bitwise_or_op: " | ",
operators.bitwise_and_op: " & ",
+ operators.bitwise_not_op: "~",
+ operators.bitwise_lshift_op: " << ",
+ operators.bitwise_rshift_op: " >> ",
}
FUNCTIONS: Dict[Type[Function[Any]], str] = {
return self.operate(bitwise_and_op, other)
+ def bitwise_not(self) -> ColumnOperators:
+ """Return bitwise NOT operation"""
+
+ return self.operate(bitwise_not_op)
+
+ def bitwise_lshift(self, other: Any) -> ColumnOperators:
+ """Return bitwise LSHIFT operation"""
+
+ return self.operate(bitwise_lshift_op, other)
+
+ def bitwise_rshift(self, other: Any) -> ColumnOperators:
+ """Return bitwise RSHIFT operation"""
+
+ return self.operate(bitwise_rshift_op, other)
+
def in_(self, other: Any) -> ColumnOperators:
"""Implement the ``in`` operator.
bitwise_xor_op: 7,
bitwise_or_op: 7,
bitwise_and_op: 7,
+ bitwise_not_op: 7,
+ bitwise_lshift_op: 7,
+ bitwise_rshift_op: 7,
concat_op: 6,
filter_op: 6,
match_op: 5,