def pow_func(left: Column, right: Any) -> Column: return F.when(left == 1, left).otherwise(Column.__pow__(left, right))
def pow_func(left: Column, right: Any) -> Column: return ( F.when(left == 1, left) .when(SF.lit(right) == 0, 1) .otherwise(Column.__pow__(left, right)) )
def pow_func(left, right): return F.when(left == 1, left).otherwise(Column.__pow__(left, right))