You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.16.1.txt
+42-25
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Highlights include:
16
16
17
17
- ``BusinessHour`` offset is supported, see :ref:`here <timeseries.businesshour>`
18
18
19
+
- Further enhancement to the ``.str`` accessor to make string operations easier, see :ref:`here <whatsnew_0161.enhancements.string>`
20
+
19
21
.. contents:: What's new in v0.16.1
20
22
:local:
21
23
:backlinks: none
@@ -37,34 +39,9 @@ Enhancements
37
39
Timestamp('2014-08-01 07:00') + BusinessHour()
38
40
Timestamp('2014-08-01 16:30') + BusinessHour()
39
41
40
-
- Added ``StringMethods.capitalize()`` and ``swapcase`` which behave as the same as standard ``str`` (:issue:`9766`)
41
42
- ``DataFrame.diff`` now takes an ``axis`` parameter that determines the direction of differencing (:issue:`9727`)
42
-
- Added ``StringMethods`` (.str accessor) to ``Index`` (:issue:`9068`)
43
-
- Added ``StringMethods.normalize()`` which behaves the same as standard :func:`unicodedata.normalizes` (:issue:`10031`)
44
-
45
-
- Added ``StringMethods.partition()`` and ``rpartition()`` which behave as the same as standard ``str`` (:issue:`9773`)
46
43
- Allow clip, clip_lower, and clip_upper to accept array-like arguments as thresholds (:issue:`6966`). These methods now have an ``axis`` parameter which determines how the Series or DataFrame will be aligned with the threshold(s).
47
44
48
-
The ``.str`` accessor is now available for both ``Series`` and ``Index``.
One special case for the `.str` accessor on ``Index`` is that if a string method returns ``bool``, the ``.str`` accessor
56
-
will return a ``np.array`` instead of a boolean ``Index`` (:issue:`8875`). This enables the following expression
57
-
to work naturally:
58
-
59
-
60
-
.. ipython:: python
61
-
62
-
idx = Index(['a1', 'a2', 'b1', 'b2'])
63
-
s = Series(range(4), index=idx)
64
-
s
65
-
idx.str.startswith('a')
66
-
s[s.index.str.startswith('a')]
67
-
68
45
- ``DataFrame.mask()`` and ``Series.mask()`` now support same keywords as ``where`` (:issue:`8801`)
69
46
70
47
- ``drop`` function can now accept ``errors`` keyword to suppress ``ValueError`` raised when any of label does not exist in the target data. (:issue:`6736`)
:ref:`Continuing from v0.16.0 <whatsnew_0160.enhancements.string>`, following
186
+
enhancements are performed to make string operation easier.
187
+
188
+
- Following new methods are accesible via ``.str`` accessor to apply the function to each values. This is intended to make it more consistent with standard methods on strings. (:issue:`9766`, :issue:`9773`, :issue:`10031`)
0 commit comments