snowflake.snowpark.functions.bitxor_agg¶
- snowflake.snowpark.functions.bitxor_agg(e: Union[snowflake.snowpark.column.Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.39.1/src/snowflake/snowpark/_functions/scalar_functions.py#L163-L175)¶
Returns the bitwise XOR of all non-NULL records in a group. If all records inside a group are NULL, the function returns NULL.
Example:
>>> df = session.create_dataframe([[15], [26], [12]], schema=["a"]) >>> df.select(bitxor_agg("a")).collect() [Row(BITXOR_AGG("A")=25)]