Skip to content

Commit a5d251d

Browse files
spacespherejreback
authored andcommitted
DOC: fix some grammar and inconsistency issues in the User Guide (#25728)
1 parent 873e22e commit a5d251d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/user_guide/text.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Since ``df.columns`` is an Index object, we can use the ``.str`` accessor
4646
df.columns.str.lower()
4747
4848
These string methods can then be used to clean up the columns as needed.
49-
Here we are removing leading and trailing white spaces, lower casing all names,
50-
and replacing any remaining white spaces with underscores:
49+
Here we are removing leading and trailing whitespaces, lower casing all names,
50+
and replacing any remaining whitespaces with underscores:
5151

5252
.. ipython:: python
5353
@@ -65,7 +65,7 @@ and replacing any remaining white spaces with underscores:
6565
``Series``.
6666

6767
Please note that a ``Series`` of type ``category`` with string ``.categories`` has
68-
some limitations in comparison of ``Series`` of type string (e.g. you can't add strings to
68+
some limitations in comparison to ``Series`` of type string (e.g. you can't add strings to
6969
each other: ``s + " " + s`` won't work if ``s`` is a ``Series`` of type ``category``). Also,
7070
``.str`` methods which operate on elements of type ``list`` are not available on such a
7171
``Series``.

0 commit comments

Comments
 (0)