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
BUG: group_shift_indexer checks for null group keys
closespandas-dev#13813
Author: Ivan Nazarov <[email protected]>
Closespandas-dev#13819 from ivannz/issue13813fix and squashes the following commits:
bddf799 [Ivan Nazarov] Switched from float('nan') to np.nan
eab8038 [Ivan Nazarov] Added bugfix description [ci skip]
d92cf3c [Ivan Nazarov] minor flake8 style corrections
94bae0b [Ivan Nazarov] Patched the template, and added a test for '.shift()'
fe2f0ec [Ivan Nazarov] Treat incomplete group keys as distinct when shifting
966d5c6 [Ivan Nazarov] BUG: group_shift_indexer checks for null group keys
- ``Index.astype()`` now accepts an optional boolean argument ``copy``, which allows optional copying if the requirements on dtype are satisfied (:issue:`13209`)
294
-
- ``Index`` now supports ``.str.extractall()`` which returns a ``DataFrame``, the see :ref:`docs here <text.extractall>` (:issue:`10008`, :issue:`13156`)
295
+
``Index`` now supports ``.str.extractall()`` which returns a ``DataFrame``, the see :ref:`docs here <text.extractall>` (:issue:`10008`, :issue:`13156`)
295
296
296
-
.. ipython:: python
297
+
.. ipython:: python
298
+
299
+
idx = pd.Index(["a1a2", "b1", "c1"])
300
+
idx.str.extractall("[ab](?P<digit>\d)")
297
301
298
-
idx = pd.Index(["a1a2", "b1", "c1"])
299
-
idx.str.extractall("[ab](?P<digit>\d)")
302
+
``Index.astype()`` now accepts an optional boolean argument ``copy``, which allows optional copying if the requirements on dtype are satisfied (:issue:`13209`)
300
303
301
304
.. _whatsnew_0190.enhancements.other:
302
305
@@ -736,6 +739,7 @@ Performance Improvements
736
739
Bug Fixes
737
740
~~~~~~~~~
738
741
742
+
- Bug in ``groupby().shift()``, which could cause a segfault or corruption in rare circumstances when grouping by columns with missing values (:issue:`13813`)
739
743
- Bug in ``pd.read_csv()``, which may cause a segfault or corruption when iterating in large chunks over a stream/file under rare circumstances (:issue:`13703`)
740
744
- Bug in ``io.json.json_normalize()``, where non-ascii keys raised an exception (:issue:`13213`)
741
745
- Bug in ``SparseSeries`` with ``MultiIndex`` ``[]`` indexing may raise ``IndexError`` (:issue:`13144`)
0 commit comments