Skip to content

Commit

Permalink
Merge pull request FederatedAI#2318 from FederatedAI/doc/fix-readthed…
Browse files Browse the repository at this point in the history
…oc-2

fix doc format view in readthedoc
  • Loading branch information
dylan-fan authored Nov 12, 2020
2 parents bc819ab + 4bae88f commit 01ffa9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/fate_arch/abc/_computing.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def collect(self, **kwargs) -> typing.Generator:
def take(self, n=1, **kwargs):
"""
take ``n`` data from table
Parameters
----------
n: int
Expand All @@ -93,6 +94,10 @@ def take(self, n=1, **kwargs):
-------
list
a list of ``n`` data
Notes
------
no order guarantee
"""
...

Expand All @@ -105,6 +110,10 @@ def first(self, **kwargs):
-------
object
a data from table
Notes
------
no order guarantee
"""
...

Expand Down Expand Up @@ -275,6 +284,7 @@ def applyPartitions(self, func):
def flatMap(self, func):
"""
apply a flat ``func`` to each data of table
Parameters
----------
func: ``typing.Callable[[object, object], typing.List[object, object]]``
Expand Down Expand Up @@ -381,6 +391,7 @@ def sample(self, *, fraction: typing.Optional[float] = None, num: typing.Optiona
def filter(self, func):
"""
returns a new table containing only those keys which satisfy a predicate passed in via ``func``.
Parameters
----------
func: typing.Callable[[object, object], bool]
Expand Down

0 comments on commit 01ffa9f

Please sign in to comment.