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: Ensure the right values are set in SeriesGroupBy.nunique
closes#13453
Author: Diego Fernandez <[email protected]>
Closes#15418 from aiguofer/gh_13453 and squashes the following commits:
c53bd70 [Diego Fernandez] Add test for #13453 in test_resample and add note to whatsnew
0daab80 [Diego Fernandez] Ensure the right values are set in SeriesGroupBy.nunique
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+4-3
Original file line number
Diff line number
Diff line change
@@ -418,6 +418,7 @@ New Behavior:
418
418
Other API Changes
419
419
^^^^^^^^^^^^^^^^^
420
420
421
+
- ``numexpr`` version is now required to be >= 2.4.6 and it will not be used at all if this requisite is not fulfilled (:issue:`15213`).
421
422
- ``CParserError`` has been renamed to ``ParserError`` in ``pd.read_csv`` and will be removed in the future (:issue:`12665`)
422
423
- ``SparseArray.cumsum()`` and ``SparseSeries.cumsum()`` will now always return ``SparseArray`` and ``SparseSeries`` respectively (:issue:`12855`)
423
424
- ``DataFrame.applymap()`` with an empty ``DataFrame`` will return a copy of the empty ``DataFrame`` instead of a ``Series`` (:issue:`8222`)
@@ -428,9 +429,8 @@ Other API Changes
428
429
- ``inplace`` arguments now require a boolean value, else a ``ValueError`` is thrown (:issue:`14189`)
429
430
- ``pandas.api.types.is_datetime64_ns_dtype`` will now report ``True`` on a tz-aware dtype, similar to ``pandas.api.types.is_datetime64_any_dtype``
430
431
- ``DataFrame.asof()`` will return a null filled ``Series`` instead the scalar ``NaN`` if a match is not found (:issue:`15118`)
431
-
- The :func:`pd.read_gbq` method now stores ``INTEGER`` columns as ``dtype=object`` if they contain ``NULL`` values. Otherwise they are stored as ``int64``. This prevents precision lost for integers greather than 2**53. Furthermore ``FLOAT`` columns with values above 10**4 are no more casted to ``int64`` which also caused precision lost (:issue:`14064`, :issue:`14305`).
432
+
- The :func:`pd.read_gbq` method now stores ``INTEGER`` columns as ``dtype=object`` if they contain ``NULL`` values. Otherwise they are stored as ``int64``. This prevents precision lost for integers greather than 2**53. Furthermore ``FLOAT`` columns with values above 10**4 are no longer casted to ``int64`` which also caused precision loss (:issue:`14064`, :issue:`14305`).
432
433
- Reorganization of timeseries development tests (:issue:`14854`)
433
-
- ``numexpr`` version is now required to be >= 2.4.6 and it will not be used at all if this requisite is not fulfilled (:issue:`15213`).
434
434
435
435
.. _whatsnew_0200.deprecations:
436
436
@@ -473,7 +473,7 @@ Performance Improvements
473
473
(or with ``compat_x=True``) (:issue:`15073`).
474
474
- Improved performance of ``groupby().cummin()`` and ``groupby().cummax()`` (:issue:`15048`, :issue:`15109`)
475
475
- Improved performance and reduced memory when indexing with a ``MultiIndex`` (:issue:`15245`)
476
-
- When reading buffer object in ``read_sas()`` method without specified format, filepath string is inferred rather than buffer object.
476
+
- When reading buffer object in ``read_sas()`` method without specified format, filepath string is inferred rather than buffer object. (:issue:`14947`)
477
477
478
478
479
479
@@ -553,6 +553,7 @@ Bug Fixes
553
553
554
554
- Bug in ``DataFrame.groupby().describe()`` when grouping on ``Index`` containing tuples (:issue:`14848`)
555
555
- Bug in creating a ``MultiIndex`` with tuples and not passing a list of names; this will now raise ``ValueError`` (:issue:`15110`)
556
+
- Bug in ``groupby().nunique()`` with a datetimelike-grouper where bins counts were incorrect (:issue:`13453`)
556
557
557
558
- Bug in catching an overflow in ``Timestamp`` + ``Timedelta/Offset`` operations (:issue:`15126`)
558
559
- Bug in the HTML display with with a ``MultiIndex`` and truncation (:issue:`14882`)
0 commit comments