diff --git a/python/fate_arch/abc/_computing.py b/python/fate_arch/abc/_computing.py index f6dba358cc..7131ae964a 100644 --- a/python/fate_arch/abc/_computing.py +++ b/python/fate_arch/abc/_computing.py @@ -84,6 +84,7 @@ def collect(self, **kwargs) -> typing.Generator: def take(self, n=1, **kwargs): """ take ``n`` data from table + Parameters ---------- n: int @@ -93,6 +94,10 @@ def take(self, n=1, **kwargs): ------- list a list of ``n`` data + + Notes + ------ + no order guarantee """ ... @@ -105,6 +110,10 @@ def first(self, **kwargs): ------- object a data from table + + Notes + ------ + no order guarantee """ ... @@ -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]]`` @@ -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]