Skip to content

Commit 5a5643e

Browse files
simonjayhawkinsmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#42220: DOC: 1.3 release notes misc
1 parent 2219e45 commit 5a5643e

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

doc/source/whatsnew/v1.3.0.rst

+25-23
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_130:
22

3-
What's new in 1.3.0 (??)
4-
------------------------
3+
What's new in 1.3.0 (June ??)
4+
-----------------------------
55

66
These are the changes in pandas 1.3.0. See :ref:`release` for a full changelog
77
including other versions of pandas.
@@ -124,7 +124,7 @@ which has been revised and improved (:issue:`39720`, :issue:`39317`, :issue:`404
124124
- The methods :meth:`.Styler.highlight_null`, :meth:`.Styler.highlight_min`, and :meth:`.Styler.highlight_max` now allow custom CSS highlighting instead of the default background coloring (:issue:`40242`)
125125
- :meth:`.Styler.apply` now accepts functions that return an ``ndarray`` when ``axis=None``, making it now consistent with the ``axis=0`` and ``axis=1`` behavior (:issue:`39359`)
126126
- When incorrectly formatted CSS is given via :meth:`.Styler.apply` or :meth:`.Styler.applymap`, an error is now raised upon rendering (:issue:`39660`)
127-
- :meth:`.Styler.format` now accepts the keyword argument ``escape`` for optional HTML and LaTex escaping (:issue:`40388`, :issue:`41619`)
127+
- :meth:`.Styler.format` now accepts the keyword argument ``escape`` for optional HTML and LaTeX escaping (:issue:`40388`, :issue:`41619`)
128128
- :meth:`.Styler.background_gradient` has gained the argument ``gmap`` to supply a specific gradient map for shading (:issue:`22727`)
129129
- :meth:`.Styler.clear` now clears :attr:`Styler.hidden_index` and :attr:`Styler.hidden_columns` as well (:issue:`40484`)
130130
- Added the method :meth:`.Styler.highlight_between` (:issue:`39821`)
@@ -252,7 +252,7 @@ Other enhancements
252252
- :func:`to_numeric` now supports downcasting of nullable ``ExtensionDtype`` objects (:issue:`33013`)
253253
- Added support for dict-like names in :class:`MultiIndex.set_names` and :class:`MultiIndex.rename` (:issue:`20421`)
254254
- :func:`read_excel` can now auto-detect .xlsb files and older .xls files (:issue:`35416`, :issue:`41225`)
255-
- :class:`ExcelWriter` now accepts an ``if_sheet_exists`` parameter to control the behaviour of append mode when writing to existing sheets (:issue:`40230`)
255+
- :class:`ExcelWriter` now accepts an ``if_sheet_exists`` parameter to control the behavior of append mode when writing to existing sheets (:issue:`40230`)
256256
- :meth:`.Rolling.sum`, :meth:`.Expanding.sum`, :meth:`.Rolling.mean`, :meth:`.Expanding.mean`, :meth:`.ExponentialMovingWindow.mean`, :meth:`.Rolling.median`, :meth:`.Expanding.median`, :meth:`.Rolling.max`, :meth:`.Expanding.max`, :meth:`.Rolling.min`, and :meth:`.Expanding.min` now support `Numba <http://numba.pydata.org/>`_ execution with the ``engine`` keyword (:issue:`38895`, :issue:`41267`)
257257
- :meth:`DataFrame.apply` can now accept NumPy unary operators as strings, e.g. ``df.apply("sqrt")``, which was already the case for :meth:`Series.apply` (:issue:`39116`)
258258
- :meth:`DataFrame.apply` can now accept non-callable DataFrame properties as strings, e.g. ``df.apply("size")``, which was already the case for :meth:`Series.apply` (:issue:`39116`)
@@ -306,7 +306,7 @@ As an example of this, given:
306306
original = pd.Series(cat)
307307
unique = original.unique()
308308
309-
*pandas < 1.3.0*:
309+
*Previous behavior*:
310310

311311
.. code-block:: ipython
312312
@@ -316,7 +316,7 @@ As an example of this, given:
316316
In [2]: original.dtype == unique.dtype
317317
False
318318
319-
*pandas >= 1.3.0*
319+
*New behavior*:
320320

321321
.. ipython:: python
322322
@@ -338,7 +338,7 @@ Preserve dtypes in :meth:`DataFrame.combine_first`
338338
df2
339339
combined = df1.combine_first(df2)
340340
341-
*pandas 1.2.x*
341+
*Previous behavior*:
342342

343343
.. code-block:: ipython
344344
@@ -349,7 +349,7 @@ Preserve dtypes in :meth:`DataFrame.combine_first`
349349
C float64
350350
dtype: object
351351
352-
*pandas 1.3.0*
352+
*New behavior*:
353353

354354
.. ipython:: python
355355
@@ -372,7 +372,7 @@ values as measured by ``np.allclose``. Now no such casting occurs.
372372
df = pd.DataFrame({'key': [1, 1], 'a': [True, False], 'b': [True, True]})
373373
df
374374
375-
*pandas 1.2.x*
375+
*Previous behavior*:
376376

377377
.. code-block:: ipython
378378
@@ -382,7 +382,7 @@ values as measured by ``np.allclose``. Now no such casting occurs.
382382
key
383383
1 True 2
384384
385-
*pandas 1.3.0*
385+
*New behavior*:
386386

387387
.. ipython:: python
388388
@@ -400,7 +400,7 @@ Now, these methods will always return a float dtype. (:issue:`41137`)
400400
401401
df = pd.DataFrame({'a': [True], 'b': [1], 'c': [1.0]})
402402
403-
*pandas 1.2.x*
403+
*Previous behavior*:
404404

405405
.. code-block:: ipython
406406
@@ -409,7 +409,7 @@ Now, these methods will always return a float dtype. (:issue:`41137`)
409409
a b c
410410
0 True 1 1.0
411411
412-
*pandas 1.3.0*
412+
*New behavior*:
413413

414414
.. ipython:: python
415415
@@ -433,7 +433,7 @@ insert the values into the existing data rather than create an entirely new arra
433433
In both the new and old behavior, the data in ``values`` is overwritten, but in
434434
the old behavior the dtype of ``df["A"]`` changed to ``int64``.
435435

436-
*pandas 1.2.x*
436+
*Previous behavior*:
437437

438438
.. code-block:: ipython
439439
@@ -448,7 +448,7 @@ the old behavior the dtype of ``df["A"]`` changed to ``int64``.
448448
449449
In pandas 1.3.0, ``df`` continues to share data with ``values``
450450

451-
*pandas 1.3.0*
451+
*New behavior*:
452452

453453
.. ipython:: python
454454
@@ -475,7 +475,7 @@ never casting to the dtypes of the existing arrays.
475475
In the old behavior, ``5`` was cast to ``float64`` and inserted into the existing
476476
array backing ``df``:
477477

478-
*pandas 1.2.x*
478+
*Previous behavior*:
479479

480480
.. code-block:: ipython
481481
@@ -485,7 +485,7 @@ array backing ``df``:
485485
486486
In the new behavior, we get a new array, and retain an integer-dtyped ``5``:
487487

488-
*pandas 1.3.0*
488+
*New behavior*:
489489

490490
.. ipython:: python
491491
@@ -508,7 +508,7 @@ casts to ``dtype=object`` (:issue:`38709`)
508508
ser2 = orig.copy()
509509
ser2.iloc[1] = 2.0
510510
511-
*pandas 1.2.x*
511+
*Previous behavior*:
512512

513513
.. code-block:: ipython
514514
@@ -524,7 +524,7 @@ casts to ``dtype=object`` (:issue:`38709`)
524524
1 2.0
525525
dtype: object
526526
527-
*pandas 1.3.0*
527+
*New behavior*:
528528

529529
.. ipython:: python
530530
@@ -787,6 +787,8 @@ For example:
787787
1 2
788788
2 12
789789
790+
*Future behavior*:
791+
790792
.. code-block:: ipython
791793
792794
In [5]: gb.prod(numeric_only=False)
@@ -816,8 +818,8 @@ Other Deprecations
816818
- Deprecated :meth:`ExponentialMovingWindow.vol` (:issue:`39220`)
817819
- Using ``.astype`` to convert between ``datetime64[ns]`` dtype and :class:`DatetimeTZDtype` is deprecated and will raise in a future version, use ``obj.tz_localize`` or ``obj.dt.tz_localize`` instead (:issue:`38622`)
818820
- Deprecated casting ``datetime.date`` objects to ``datetime64`` when used as ``fill_value`` in :meth:`DataFrame.unstack`, :meth:`DataFrame.shift`, :meth:`Series.shift`, and :meth:`DataFrame.reindex`, pass ``pd.Timestamp(dateobj)`` instead (:issue:`39767`)
819-
- Deprecated :meth:`.Styler.set_na_rep` and :meth:`.Styler.set_precision` in favour of :meth:`.Styler.format` with ``na_rep`` and ``precision`` as existing and new input arguments respectively (:issue:`40134`, :issue:`40425`)
820-
- Deprecated :meth:`.Styler.where` in favour of using an alternative formulation with :meth:`Styler.applymap` (:issue:`40821`)
821+
- Deprecated :meth:`.Styler.set_na_rep` and :meth:`.Styler.set_precision` in favor of :meth:`.Styler.format` with ``na_rep`` and ``precision`` as existing and new input arguments respectively (:issue:`40134`, :issue:`40425`)
822+
- Deprecated :meth:`.Styler.where` in favor of using an alternative formulation with :meth:`Styler.applymap` (:issue:`40821`)
821823
- Deprecated allowing partial failure in :meth:`Series.transform` and :meth:`DataFrame.transform` when ``func`` is list-like or dict-like and raises anything but ``TypeError``; ``func`` raising anything but a ``TypeError`` will raise in a future version (:issue:`40211`)
822824
- Deprecated arguments ``error_bad_lines`` and ``warn_bad_lines`` in :meth:`read_csv` and :meth:`read_table` in favor of argument ``on_bad_lines`` (:issue:`15122`)
823825
- Deprecated support for ``np.ma.mrecords.MaskedRecords`` in the :class:`DataFrame` constructor, pass ``{name: data[name] for name in data.dtype.names}`` instead (:issue:`40363`)
@@ -886,7 +888,7 @@ Performance improvements
886888
- Performance improvement in :class:`.Styler` where render times are more than 50% reduced and now matches :meth:`DataFrame.to_html` (:issue:`39972` :issue:`39952`, :issue:`40425`)
887889
- The method :meth:`.Styler.set_td_classes` is now as performant as :meth:`.Styler.apply` and :meth:`.Styler.applymap`, and even more so in some cases (:issue:`40453`)
888890
- Performance improvement in :meth:`.ExponentialMovingWindow.mean` with ``times`` (:issue:`39784`)
889-
- Performance improvement in :meth:`.GroupBy.apply` when requiring the python fallback implementation (:issue:`40176`)
891+
- Performance improvement in :meth:`.GroupBy.apply` when requiring the Python fallback implementation (:issue:`40176`)
890892
- Performance improvement in the conversion of a PyArrow Boolean array to a pandas nullable Boolean array (:issue:`41051`)
891893
- Performance improvement for concatenation of data with type :class:`CategoricalDtype` (:issue:`40193`)
892894
- Performance improvement in :meth:`.GroupBy.cummin` and :meth:`.GroupBy.cummax` with nullable data types (:issue:`37493`)
@@ -957,7 +959,7 @@ Numeric
957959
- Bug in :class:`Series` and :class:`DataFrame` reductions with methods ``any`` and ``all`` not returning Boolean results for object data (:issue:`12863`, :issue:`35450`, :issue:`27709`)
958960
- Bug in :meth:`Series.clip` would fail if the Series contains NA values and has nullable int or float as a data type (:issue:`40851`)
959961
- Bug in :meth:`UInt64Index.where` and :meth:`UInt64Index.putmask` with an ``np.int64`` dtype ``other`` incorrectly raising ``TypeError`` (:issue:`41974`)
960-
- Bug in :meth:`DataFrame.agg()` not sorting the aggregated axis in the order of the provided aggragation functions when one or more aggregation function fails to produce results (:issue:`33634`)
962+
- Bug in :meth:`DataFrame.agg()` not sorting the aggregated axis in the order of the provided aggregation functions when one or more aggregation function fails to produce results (:issue:`33634`)
961963
- Bug in :meth:`DataFrame.clip` not interpreting missing values as no threshold (:issue:`40420`)
962964

963965
Conversion
@@ -1228,4 +1230,4 @@ Other
12281230
Contributors
12291231
~~~~~~~~~~~~
12301232

1231-
.. contributors:: v1.2.4..v1.3.0|HEAD
1233+
.. contributors:: v1.2.5..v1.3.0|HEAD

0 commit comments

Comments
 (0)