File tree 1 file changed +3
-3
lines changed
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
46
46
df.columns.str.lower()
47
47
48
48
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:
51
51
52
52
.. ipython :: python
53
53
@@ -65,7 +65,7 @@ and replacing any remaining white spaces with underscores:
65
65
``Series ``.
66
66
67
67
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
69
69
each other: ``s + " " + s `` won't work if ``s `` is a ``Series `` of type ``category ``). Also,
70
70
``.str `` methods which operate on elements of type ``list `` are not available on such a
71
71
``Series ``.
You can’t perform that action at this time.
0 commit comments