snowflake.snowpark.DataFrame.cube¶
- DataFrame.cube(*cols: Union[Column, str, Iterable[Union[Column, str]]]) RelationalGroupedDataFrame [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/dataframe.py#L2155-L2186)¶
Performs a SQL GROUP BY CUBE. on the DataFrame.
- Parameters:
cols – The columns to group by cube.