Tomas Pereira de Vasconcelos created SPARK-35986: ----------------------------------------------------
Summary: fix pyspark.rdd.RDD.histogram's buckets argument Key: SPARK-35986 URL: https://issues.apache.org/jira/browse/SPARK-35986 Project: Spark Issue Type: Improvement Components: PySpark Affects Versions: 3.1.2, 3.1.1, 3.1.0, 3.0.3, 3.0.2, 3.0.1, 3.0.0 Reporter: Tomas Pereira de Vasconcelos I originally opened an issue and created a PR in the [https://github.com/zero323/pyspark-stubs] repository. Issue: [https://github.com/zero323/pyspark-stubs/issues/548] PR: [https://github.com/zero323/pyspark-stubs/pull/549] --- The type hint for {{pyspark.rdd.RDD.histogram}}'s {{buckets}} argument should be {{Union[int, List[T], Tuple[T]]}} >From {{pyspark}} source: {code:java} if isinstance(buckets, int): ... elif isinstance(buckets, (list, tuple)): ... else: raise TypeError("buckets should be a list or tuple or number(int or long)") {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org