diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e8137a2277c92..8deeb415c17c9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6900,7 +6900,7 @@ def apply(self, func, axis=0, raw=False, result_type=None, args=(), **kwds): 2 [1, 2] dtype: object - Passing result_type='expand' will expand list-like results + Passing ``result_type='expand'`` will expand list-like results to columns of a Dataframe >>> df.apply(lambda x: [1, 2], axis=1, result_type='expand')