File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ``.
You can’t perform that action at this time.
0 commit comments