Skip to content

Commit 7a61e1b

Browse files
authored
DOC: Add missing punctuation to merging.rst (pandas-dev#61315)
DOC Add missing punctuation to merging.rst
1 parent faf9785 commit 7a61e1b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

doc/source/user_guide/merging.rst

+10-9
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Joining logic of the resulting axis
107107
The ``join`` keyword specifies how to handle axis values that don't exist in the first
108108
:class:`DataFrame`.
109109

110-
``join='outer'`` takes the union of all axis values
110+
``join='outer'`` takes the union of all axis values.
111111

112112
.. ipython:: python
113113
@@ -130,7 +130,7 @@ The ``join`` keyword specifies how to handle axis values that don't exist in the
130130
p.plot([df1, df4], result, labels=["df1", "df4"], vertical=False);
131131
plt.close("all");
132132
133-
``join='inner'`` takes the intersection of the axis values
133+
``join='inner'`` takes the intersection of the axis values.
134134

135135
.. ipython:: python
136136
@@ -296,7 +296,7 @@ the index of the :class:`DataFrame` pieces:
296296
297297
result.index.levels
298298
299-
``levels`` argument allows specifying resulting levels associated with the ``keys``
299+
``levels`` argument allows specifying resulting levels associated with the ``keys``.
300300

301301
.. ipython:: python
302302
@@ -322,7 +322,7 @@ Appending rows to a :class:`DataFrame`
322322
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
323323

324324
If you have a :class:`Series` that you want to append as a single row to a :class:`DataFrame`, you can convert the row into a
325-
:class:`DataFrame` and use :func:`concat`
325+
:class:`DataFrame` and use :func:`concat`.
326326

327327
.. ipython:: python
328328
@@ -355,7 +355,7 @@ Merge types
355355
their indexes which must contain unique values.
356356
* **many-to-one**: joining a unique index to one or
357357
more columns in a different :class:`DataFrame`.
358-
* **many-to-many** : joining columns on columns.
358+
* **many-to-many**: joining columns on columns.
359359

360360
.. note::
361361

@@ -485,8 +485,9 @@ either the left or right tables, the values in the joined table will be
485485
plt.close("all");
486486
487487
You can merge :class:`Series` and a :class:`DataFrame` with a :class:`MultiIndex` if the names of
488-
the :class:`MultiIndex` correspond to the columns from the :class:`DataFrame`. Transform
489-
the :class:`Series` to a :class:`DataFrame` using :meth:`Series.reset_index` before merging
488+
the :class:`MultiIndex` correspond to the columns from the :class:`DataFrame`. You can also
489+
transform the :class:`Series` to a :class:`DataFrame` using :meth:`Series.reset_index`
490+
before merging:
490491

491492
.. ipython:: python
492493
@@ -504,7 +505,7 @@ the :class:`Series` to a :class:`DataFrame` using :meth:`Series.reset_index` bef
504505
pd.merge(df, ser.reset_index(), on=["Let", "Num"])
505506
506507
507-
Performing an outer join with duplicate join keys in :class:`DataFrame`
508+
Performing an outer join with duplicate join keys in :class:`DataFrame`:
508509

509510
.. ipython:: python
510511
@@ -1082,7 +1083,7 @@ Stack the differences on rows.
10821083
10831084
df.compare(df2, align_axis=0)
10841085
1085-
Keep all original rows and columns with ``keep_shape=True``
1086+
Keep all original rows and columns with ``keep_shape=True``.
10861087

10871088
.. ipython:: python
10881089

0 commit comments

Comments
 (0)