Details
Description
I've been reviewing PR in the legacy repo (https://github.com/zero323/pyspark-stubs/pull/552) and it looks like we have two problems with annotations for approxQuantile.
First of all DataFrame.approxQuantile should overload definition to match input arguments ‒ if col is a sequence then result should be a list of lists:
@overload def approxQuantile( self, col: str, probabilities: Union[List[float], Tuple[float]], relativeError: float ) -> List[float]: ... @overload def approxQuantile( self, col: Union[List[str], Tuple[str]], probabilities: Union[List[float], Tuple[float]], relativeError: float ) -> List[List[float]]: ...
Additionally DataFrameStatFunctions.approxQuantile should match whatever we have in DataFrame.