Skip to content

Commit 1cde111

Browse files
committed
DOC: Correct doc mistake in combiner func
Closes pandas-devgh-25359.
1 parent 659e0ca commit 1cde111

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)