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
One special case for the `.str` accessor on `Index` is that if a string method returns `bool`, the `.str` accessor
31
+
will return a `np.array` instead of a boolean `Index` (:issue:`8875`). This enables the following expression
32
+
to work naturally:
25
33
34
+
.. ipython:: python
35
+
36
+
idx = Index(['a1', 'a2', 'b1', 'b2'])
37
+
s = Series(range(4), index=idx)
38
+
s
39
+
idx.str.startswith('a')
40
+
s[s.index.str.startswith('a')]
41
+
42
+
- ``DataFrame.mask()`` and ``Series.mask()`` now support same keywords as ``where`` (:issue:`8801`)
26
43
- ``drop`` function can now accept ``errors`` keyword to suppress ValueError raised when any of label does not exist in the target data. (:issue:`6736`)
0 commit comments