cookiecutter_scverse_instance.pp.elaborate_example#
- cookiecutter_scverse_instance.pp.elaborate_example(items, transform, *, layer_key=None, max_items=100)#
A method with a more complex docstring.
This is where you add more details. Try to support general container classes such as Sequence, Mapping, or Collection where possible to ensure that your functions can be widely used.
Data science means there’s lots of math too:
x=2a−b±b2−4ac- Parameters:
- Return type:
- Returns:
List of transformed string items.
Examples
>>> elaborate_example( ... [adata], ... lambda vals: f"Statistics: mean={vals.mean():.2f}, max={vals.max():.2f}", ... ) ['Statistics: mean=1.24, max=8.75']