Skip to content

Commit 07bb3ed

Browse files
meeseeksmachinejorisvandenbossche
authored andcommitted
Backport PR #25360: DOC: Correct doc mistake in combiner func (#25361)
1 parent 247594e commit 07bb3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/getting_started/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ So, for instance, to reproduce :meth:`~DataFrame.combine_first` as above:
505505
.. ipython:: python
506506
507507
def combiner(x, y):
508-
np.where(pd.isna(x), y, x)
508+
return np.where(pd.isna(x), y, x)
509509
df1.combine(df2, combiner)
510510
511511
.. _basics.stats:

0 commit comments

Comments
 (0)