Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
20 changes: 10 additions & 10 deletions databricks/koalas/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -8629,7 +8629,7 @@ def unstack(self):
)

# TODO: axis, skipna, and many arguments should be implemented.
def all(self, axis: Union[int, str] = 0) -> bool:
def all(self, axis: Union[int, str] = 0) -> "ks.Series":
"""
Return whether all elements are True.

Expand All @@ -8644,6 +8644,10 @@ def all(self, axis: Union[int, str] = 0) -> bool:
* 0 / 'index' : reduce the index, return a Series whose index is the
original column labels.

Returns
-------
Series

Examples
--------
Create a dataframe from a dictionary.
Expand All @@ -8667,10 +8671,6 @@ def all(self, axis: Union[int, str] = 0) -> bool:
col5 True
col6 False
dtype: bool

Returns
-------
Series
"""
from databricks.koalas.series import first_series

Expand Down Expand Up @@ -8716,7 +8716,7 @@ def all(self, axis: Union[int, str] = 0) -> bool:
return first_series(DataFrame(internal))

# TODO: axis, skipna, and many arguments should be implemented.
def any(self, axis: Union[int, str] = 0) -> bool:
def any(self, axis: Union[int, str] = 0) -> "ks.Series":
"""
Return whether any element is True.

Expand All @@ -8731,6 +8731,10 @@ def any(self, axis: Union[int, str] = 0) -> bool:
* 0 / 'index' : reduce the index, return a Series whose index is the
original column labels.

Returns
-------
Series

Examples
--------
Create a dataframe from a dictionary.
Expand All @@ -8754,10 +8758,6 @@ def any(self, axis: Union[int, str] = 0) -> bool:
col5 False
col6 True
dtype: bool

Returns
-------
Series
"""
from databricks.koalas.series import first_series

Expand Down
Loading