snowflake.snowpark.functions.create_map¶
- snowflake.snowpark.functions.create_map(*cols: Union[Column, str, Iterable[Union[Column, str]]]) Column[source]¶
Transforms multiple column pairs into a single map
Columnwhere each pair of columns is treated as a key-value pair in the resulting map.- Parameters:
*cols – A variable number of column names or
Columnobjects that can also be expressed as a list of columns. The function expects an even number of arguments, where each pair of arguments represents a key-value pair for the map.- Returns:
A
Columnwhere each row contains a map created from the provided column pairs.
Example