You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.22.0.txt
+47-2Lines changed: 47 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ Previous Behavior:
88
88
4 NaN
89
89
dtype: float64
90
90
91
-
Current Behavior
91
+
Current Behavior:
92
92
93
93
.. ipython:: python
94
94
@@ -113,7 +113,7 @@ Previous Behavior:
113
113
3 2.5
114
114
dtype: float64
115
115
116
-
Current Behavior
116
+
Current Behavior:
117
117
118
118
.. ipython:: python
119
119
@@ -160,6 +160,51 @@ If installed, we now require:
160
160
| openpyxl | 2.4.0 | |
161
161
+-----------------+-----------------+----------+
162
162
163
+
.. _whatsnew_0220.api_breaking.apply:
164
+
165
+
Apply Changes
166
+
~~~~~~~~~~~~~
167
+
168
+
:func:`DataFrame.apply` was inconsistent when applying an arbitrary user-defined-function that returned a list-like with ``axis=1``. Several bugs and inconsistencies
169
+
are resolved. If the applied function returns a Series, then pandas will return a DataFrame; otherwise a Series will be returned, this includes the case
170
+
where a list-like (e.g. ``tuple`` or ``list`` is returned), (:issue:`16353`, :issue:`17437`, :issue:`17970`, :issue:`17348`, :issue:`17892`, :issue:`18573`, :issue:`17602`, :issue:`18775`)
0 commit comments