Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions python/pyspark/sql/dataframe.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,20 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
value: OptionalPrimitiveType,
subset: Optional[List[str]] = ...,
) -> DataFrame: ...
@overload
def approxQuantile(
self,
col: Union[str, Tuple[str, ...], List[str]],
probabilities: Union[List[float], Tuple[float, ...]],
relativeError: float
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]]: ...
def corr(self, col1: str, col2: str, method: Optional[str] = ...) -> float: ...
def cov(self, col1: str, col2: str) -> float: ...
def crosstab(self, col1: str, col2: str) -> DataFrame: ...
Expand Down Expand Up @@ -318,9 +326,20 @@ class DataFrameNaFunctions:
class DataFrameStatFunctions:
df: DataFrame
def __init__(self, df: DataFrame) -> None: ...
@overload
def approxQuantile(
self, col: str, probabilities: List[float], relativeError: float
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]]: ...
def corr(self, col1: str, col2: str, method: Optional[str] = ...) -> float: ...
def cov(self, col1: str, col2: str) -> float: ...
def crosstab(self, col1: str, col2: str) -> DataFrame: ...
Expand Down