Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
Description
>>> spark.range(1).cube(cols=1.2) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/.../python/pyspark/sql/connect/dataframe.py", line 544, in cube raise PySparkTypeError( pyspark.errors.exceptions.base.PySparkTypeError: [NOT_COLUMN_OR_STR] Argument `cube` should be a Column or str, got float.
>>> help(spark.range(1).cube) Help on method cube in module pyspark.sql.connect.dataframe: cube(*cols: 'ColumnOrName') -> 'GroupedData' method of pyspark.sql.connect.dataframe.DataFrame instance Create a multi-dimensional cube for the current :class:`DataFrame` using the specified columns, allowing aggregations to be performed on them. .. versionadded:: 1.4.0 .. versionchanged:: 3.4.0
it has to be
{cols}Attachments
Issue Links
- links to