From 1cde1118f97310350bd23ca5221d5c1c177bb6b6 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Mon, 18 Feb 2019 02:21:23 -0800 Subject: [PATCH] DOC: Correct doc mistake in combiner func Closes gh-25359. --- doc/source/getting_started/basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 02cbc7e2c3b6d..bbec7b5de1d2e 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -505,7 +505,7 @@ So, for instance, to reproduce :meth:`~DataFrame.combine_first` as above: .. ipython:: python def combiner(x, y): - np.where(pd.isna(x), y, x) + return np.where(pd.isna(x), y, x) df1.combine(df2, combiner) .. _basics.stats: