@@ -4545,17 +4545,16 @@ def pipe(self, func, *args, **kwargs):
4545
4545
4546
4546
Parameters
4547
4547
----------
4548
- func : function, string, dictionary, or list of string/functions
4548
+ func : function, string, list of string/functions or dictionary
4549
4549
Function to use for aggregating the data. If a function, must either
4550
- work when passed a %(klass)s or when passed to %(klass)s.apply. For
4551
- a DataFrame, can pass a dict, if the keys are DataFrame column names.
4550
+ work when passed a %(klass)s or when passed to %(klass)s.apply.
4552
4551
4553
4552
Accepted combinations are:
4554
4553
4555
- - string function name.
4556
- - function.
4557
- - list of functions.
4558
- - dict of column names -> functions ( or list of functions).
4554
+ - string function name
4555
+ - function
4556
+ - list of functions and/or function names
4557
+ - dict of axis labels -> functions, function names and/ or list of such
4559
4558
%(axis)s
4560
4559
*args
4561
4560
Positional arguments to pass to `func`.
@@ -4581,15 +4580,24 @@ def pipe(self, func, *args, **kwargs):
4581
4580
4582
4581
Parameters
4583
4582
----------
4584
- func : callable, string, dictionary, or list of string/callables
4585
- To apply to column
4583
+ func : function, string, list of string/functions or dictionary
4584
+ Function to use for transforming the data. If a function, must either
4585
+ work when passed a %(klass)s or when passed to %(klass)s.apply.
4586
+ The function (or each function in a list/dict) must return an
4587
+ object with the same length for the provided axis as the
4588
+ calling %(klass)s.
4586
4589
4587
- Accepted Combinations are:
4590
+ Accepted combinations are:
4588
4591
4589
4592
- string function name
4590
4593
- function
4591
- - list of functions
4592
- - dict of column names -> functions (or list of functions)
4594
+ - list of functions and/or function names
4595
+ - dict of axis labels -> functions, function names and/or list of such
4596
+ %(axis)s
4597
+ *args
4598
+ Positional arguments to pass to `func`.
4599
+ **kwargs
4600
+ Keyword arguments to pass to `func`.
4593
4601
4594
4602
Returns
4595
4603
-------
0 commit comments