def rpow_func(left, right): return F.when(F.lit(right == 1), right).otherwise(Column.__rpow__(left, right))
def rpow_func(left: Column, right: Any) -> Column: return F.when(SF.lit(right == 1), right).otherwise(Column.__rpow__(left, right))
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)))