Example #1
0
 def rpow_func(left, right):
     return F.when(F.lit(right == 1),
                   right).otherwise(Column.__rpow__(left, right))
Example #2
0
 def rpow_func(left: Column, right: Any) -> Column:
     return F.when(SF.lit(right == 1), right).otherwise(Column.__rpow__(left, right))
Example #3
0
 def rpow_func(left: Column, right: Any) -> Column:
     return (F.when(left.isNull(),
                    np.nan).when(SF.lit(right == 1), right).otherwise(
                        Column.__rpow__(left, right)))