From 1b32c345e84fa2dcba050d8a83b1cd6f630a6ec6 Mon Sep 17 00:00:00 2001 From: Tejas Rajput Date: Sun, 12 May 2024 17:31:07 +0000 Subject: [PATCH 1/2] There was a typo in user_guide doc ,particulary in documentation of merge,join ,concatenate and compare which after fixing is more grmatically correct and making more sense now --- doc/source/user_guide/merging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index 1edf3908936db..f38305d07d309 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -484,7 +484,7 @@ either the left or right tables, the values in the joined table will be p.plot([left, right], result, labels=["left", "right"], vertical=False); plt.close("all"); -You can :class:`Series` and a :class:`DataFrame` with a :class:`MultiIndex` if the names of +You can merge :class:`Series` and a :class:`DataFrame` with a :class:`MultiIndex` if the names of the :class:`MultiIndex` correspond to the columns from the :class:`DataFrame`. Transform the :class:`Series` to a :class:`DataFrame` using :meth:`Series.reset_index` before merging From 1e1ea93d942db3fab247517dd671190418817841 Mon Sep 17 00:00:00 2001 From: Tejas Rajput Date: Mon, 13 May 2024 16:30:06 +0000 Subject: [PATCH 2/2] A sentence from section Merge,join,concatenate and compare in user guide doc -specifically in compare method's docs, has been restructured so that it is more easy to comprehend ,earlier more obscure sentence has now been simplified by just adding few words more --- doc/source/user_guide/merging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index f38305d07d309..53fc9245aa972 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -1073,7 +1073,7 @@ compare two :class:`DataFrame` or :class:`Series`, respectively, and summarize t df.compare(df2) By default, if two corresponding values are equal, they will be shown as ``NaN``. -Furthermore, if all values in an entire row / column, the row / column will be +Furthermore, if all values in an entire row / column are equal, that row / column will be omitted from the result. The remaining differences will be aligned on columns. Stack the differences on rows.