pipe#

Pseudobulk.pipe(function, /, *args, **kwargs)[source]#

Apply a function to a Pseudobulk dataset.

pb.pipe(func) is equivalent to func(pb). pb.pipe(func, 1, a=2) is equivalent to func(pb, 1, a=2).

Parameters:
  • function: Callable[[Pseudobulk, ...], Any]

    the function to apply

  • *args: Any

    the positional arguments to the function

  • **kwargs: Any

    the keyword arguments to the function

Returns:

The result of applying the function to this Pseudobulk dataset.

Return type:

Any