Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: fix some grammar and inconsistency issues in the User Guide #25728

Merged
merged 1 commit into from
Mar 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/source/user_guide/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Since ``df.columns`` is an Index object, we can use the ``.str`` accessor
df.columns.str.lower()

These string methods can then be used to clean up the columns as needed.
Here we are removing leading and trailing white spaces, lower casing all names,
and replacing any remaining white spaces with underscores:
Here we are removing leading and trailing whitespaces, lower casing all names,
and replacing any remaining whitespaces with underscores:

.. ipython:: python

Expand All @@ -65,7 +65,7 @@ and replacing any remaining white spaces with underscores:
``Series``.

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