Skip to content

Commit 9b65473

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a07be00 commit 9b65473

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10399,11 +10399,11 @@ def apply(
1039910399
These only act when ``axis=1`` (columns):
1040010400
1040110401
* 'expand' : list-like results will be turned into columns.
10402-
Note: The output type is inferred from the first function return value.
10403-
If the first return value is not list-like (e.g., None or NaN), expansion
10404-
will not occur, and the result may be a Series instead of a DataFrame.
10405-
To avoid inconsistent output types, ensure your function returns
10406-
consistent list-like objects (e.g., an empty dict {}) for missing or
10402+
Note: The output type is inferred from the first function return value.
10403+
If the first return value is not list-like (e.g., None or NaN), expansion
10404+
will not occur, and the result may be a Series instead of a DataFrame.
10405+
To avoid inconsistent output types, ensure your function returns
10406+
consistent list-like objects (e.g., an empty dict {}) for missing or
1040710407
NaN-like values.
1040810408
1040910409

0 commit comments

Comments
 (0)