From eca86aa9c490cc359643fb95a93d9fb61999e17f Mon Sep 17 00:00:00 2001 From: zero323 Date: Wed, 25 Nov 2020 00:45:00 +0100 Subject: [PATCH] Fix the varargs annotations --- python/pyspark/mllib/util.py | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/python/pyspark/mllib/util.py b/python/pyspark/mllib/util.py index 303d8a12d530e..68feb9563852c 100644 --- a/python/pyspark/mllib/util.py +++ b/python/pyspark/mllib/util.py @@ -236,13 +236,8 @@ def convertVectorColumnsToML(dataset, *cols): ---------- dataset : :py:class:`pyspark.sql.DataFrame` input dataset - \\*cols : columns (variable number and type) - - * str: multiple str values - - * list: a list of str - - listing vector columns to be converted. + \\*cols : str + Vector columns to be converted. New vector columns will be ignored. If unspecified, all old vector columns will be converted excepted nested ones. @@ -290,13 +285,8 @@ def convertVectorColumnsFromML(dataset, *cols): ---------- dataset : :py:class:`pyspark.sql.DataFrame` input dataset - \\*cols : columns (variable number and type) - - * str: multiple str values - - * list: a list of str - - listing vector columns to be converted. + \\*cols : str + Vector columns to be converted. Old vector columns will be ignored. If unspecified, all new vector columns will be converted except nested ones. @@ -344,13 +334,8 @@ def convertMatrixColumnsToML(dataset, *cols): ---------- dataset : :py:class:`pyspark.sql.DataFrame` input dataset - \\*cols : columns (variable number and type) - - * str: multiple str values - - * list: a list of str - - listing matrix columns to be converted. + \\*cols : str + Matrix columns to be converted. New matrix columns will be ignored. If unspecified, all old matrix columns will be converted excepted nested ones. @@ -398,13 +383,8 @@ def convertMatrixColumnsFromML(dataset, *cols): ---------- dataset : :py:class:`pyspark.sql.DataFrame` input dataset - \\*cols : columns (variable number and type) - - * str: multiple str values - - * list: a list of str - - listing matrix columns to be converted. + \\*cols : str + Matrix columns to be converted. Old matrix columns will be ignored. If unspecified, all new matrix columns will be converted except nested ones.