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