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.21.0.txt
+12-2
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,8 @@ Other Enhancements
126
126
- :func:`date_range` now accepts 'Y' in addition to 'A' as an alias for end of year (:issue:`9313`)
127
127
- Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a new top-level :func:`read_parquet` and :func:`DataFrame.to_parquet` method, see :ref:`here <io.parquet>`.
128
128
- :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept strings containing the '%' character. (:issue:`17151`)
129
+
- `read_*` methods can now infer compression from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`).
130
+
- :func:`pd.read_sas()` now recognizes much more of the most frequently used date (datetime) formats in SAS7BDAT files (:issue:`15871`).
129
131
130
132
.. _whatsnew_0210.api_breaking:
131
133
@@ -275,7 +277,7 @@ Other API Changes
275
277
- Removed the ``@slow`` decorator from ``pandas.util.testing``, which caused issues for some downstream packages' test suites. Use ``@pytest.mark.slow`` instead, which achieves the same thing (:issue:`16850`)
276
278
- Moved definition of ``MergeError`` to the ``pandas.errors`` module.
277
279
- The signature of :func:`Series.set_axis` and :func:`DataFrame.set_axis` has been changed from ``set_axis(axis, labels)`` to ``set_axis(labels, axis=0)``, for consistency with the rest of the API. The old signature is deprecated and will show a ``FutureWarning`` (:issue:`14636`)
278
-
280
+
- :func:`Series.argmin` and :func:`Series.argmax` will now raise a ``TypeError`` when used with ``object`` dtypes, instead of a ``ValueError`` (:issue:`13595`)
279
281
280
282
.. _whatsnew_0210.deprecations:
281
283
@@ -306,6 +308,7 @@ Performance Improvements
306
308
~~~~~~~~~~~~~~~~~~~~~~~~
307
309
308
310
- Improved performance of instantiating :class:`SparseDataFrame` (:issue:`16773`)
311
+
- :attr:`Series.dt` no longer performs frequency inference, yielding a large speedup when accessing the attribute (:issue:`17210`)
309
312
310
313
311
314
.. _whatsnew_0210.bug_fixes:
@@ -317,8 +320,11 @@ Bug Fixes
317
320
Conversion
318
321
^^^^^^^^^^
319
322
320
-
- Bug in assignment against datetime-like data with ``int`` may incorrectly converte to datetime-like (:issue:`14145`)
323
+
- Bug in assignment against datetime-like data with ``int`` may incorrectly convert to datetime-like (:issue:`14145`)
321
324
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
325
+
- Fix :func:`DataFrame.memory_usage` to support PyPy. Objects on PyPy do not have a fixed size, so an approximation is used instead (:issue:`17228`)
326
+
- Fixed the return type of ``IntervalIndex.is_non_overlapping_monotonic`` to be a Python ``bool`` for consistency with similar attributes/methods. Previously returned a ``numpy.bool_``. (:issue:`17237`)
327
+
- Bug in ``IntervalIndex.is_non_overlapping_monotonic`` when intervals are closed on both sides and overlap at a point (:issue:`16560`)
322
328
323
329
324
330
Indexing
@@ -379,6 +385,7 @@ Reshaping
379
385
- Fixes regression from 0.20, :func:`Series.aggregate` and :func:`DataFrame.aggregate` allow dictionaries as return values again (:issue:`16741`)
380
386
- Fixes dtype of result with integer dtype input, from :func:`pivot_table` when called with ``margins=True`` (:issue:`17013`)
381
387
- Bug in :func:`crosstab` where passing two ``Series`` with the same name raised a ``KeyError`` (:issue:`13279`)
388
+
- :func:`Series.argmin`, :func:`Series.argmax`, and their counterparts on ``DataFrame`` and groupby objects work correctly with floating point data that contains infinite values (:issue:`13595`).
382
389
383
390
Numeric
384
391
^^^^^^^
@@ -388,6 +395,9 @@ Numeric
388
395
Categorical
389
396
^^^^^^^^^^^
390
397
- Bug in :func:`Series.isin` when called with a categorical (:issue`16639`)
398
+
- Bug in the categorical constructor with empty values and categories causing
399
+
the ``.categories`` to be an empty ``Float64Index`` rather than an empty
0 commit comments