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/v1.3.0.rst
+16-8
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,9 @@ We provided some focused development on :class:`.Styler`, including altering met
117
117
to accept more universal CSS language for arguments, such as ``'color:red;'`` instead of
118
118
``[('color', 'red')]`` (:issue:`39564`). This is also added to the built-in methods
119
119
to allow custom CSS highlighting instead of default background coloring (:issue:`40242`).
120
+
Enhancements to other built-in methods include extending the :meth:`.Styler.background_gradient`
121
+
method to shade elements based on a given gradient map and not be restricted only to
122
+
values in the DataFrame (:issue:`39930` :issue:`22727` :issue:`28901`).
120
123
121
124
The :meth:`.Styler.apply` now consistently allows functions with ``ndarray`` output to
122
125
allow more flexible development of UDFs when ``axis`` is ``None`` ``0`` or ``1`` (:issue:`39393`).
@@ -819,24 +822,29 @@ ExtensionArray
819
822
- Fixed a bug where some properties of subclasses of :class:`PandasExtensionDtype` where improperly cached (:issue:`40329`)
820
823
-
821
824
825
+
Styler
826
+
^^^^^^
827
+
828
+
- Bug in :class:`Styler` where ``subset`` arg in methods raised an error for some valid multiindex slices (:issue:`33562`)
829
+
- :class:`Styler` rendered HTML output minor alterations to support w3 good code standard (:issue:`39626`)
830
+
- Bug in :class:`Styler` where rendered HTML was missing a column class identifier for certain header cells (:issue:`39716`)
831
+
- Bug in :meth:`Styler.background_gradient` where text-color was not determined correctly (:issue:`39888`)
832
+
- Bug in :class:`Styler` where multiple elements in CSS-selectors were not correctly added to ``table_styles`` (:issue:`39942`)
833
+
- Bug in :class:`.Styler` where copying from Jupyter dropped top left cell and misaligned headers (:issue:`12147`)
834
+
- Bug in :class:`.Styler.where` where ``kwargs`` were not passed to the applicable callable (:issue:`40845`)
835
+
- Bug in :class:`Styler` which caused CSS to duplicate on multiple renders. (:issue:`39395`, :issue:`40334`)
836
+
837
+
822
838
Other
823
839
^^^^^
824
840
- Bug in :class:`Index` constructor sometimes silently ignoring a specified ``dtype`` (:issue:`38879`)
825
841
- Bug in :func:`pandas.api.types.infer_dtype` not recognizing Series, Index or array with a period dtype (:issue:`23553`)
826
842
- Bug in :func:`pandas.api.types.infer_dtype` raising an error for general :class:`.ExtensionArray` objects. It will now return ``"unknown-array"`` instead of raising (:issue:`37367`)
827
843
- Bug in constructing a :class:`Series` from a list and a :class:`PandasDtype` (:issue:`39357`)
828
-
- Bug in :class:`Styler` which caused CSS to duplicate on multiple renders. (:issue:`39395`, :issue:`40334`)
829
844
- ``inspect.getmembers(Series)`` no longer raises an ``AbstractMethodError`` (:issue:`38782`)
830
845
- Bug in :meth:`Series.where` with numeric dtype and ``other = None`` not casting to ``nan`` (:issue:`39761`)
831
846
- :meth:`Index.where` behavior now mirrors :meth:`Index.putmask` behavior, i.e. ``index.where(mask, other)`` matches ``index.putmask(~mask, other)`` (:issue:`39412`)
832
847
- Bug in :func:`pandas.testing.assert_series_equal`, :func:`pandas.testing.assert_frame_equal`, :func:`pandas.testing.assert_index_equal` and :func:`pandas.testing.assert_extension_array_equal` incorrectly raising when an attribute has an unrecognized NA type (:issue:`39461`)
833
-
- Bug in :class:`Styler` where ``subset`` arg in methods raised an error for some valid multiindex slices (:issue:`33562`)
834
-
- :class:`Styler` rendered HTML output minor alterations to support w3 good code standard (:issue:`39626`)
835
-
- Bug in :class:`Styler` where rendered HTML was missing a column class identifier for certain header cells (:issue:`39716`)
836
-
- Bug in :meth:`Styler.background_gradient` where text-color was not determined correctly (:issue:`39888`)
837
-
- Bug in :class:`Styler` where multiple elements in CSS-selectors were not correctly added to ``table_styles`` (:issue:`39942`)
838
-
- Bug in :class:`.Styler` where copying from Jupyter dropped top left cell and misaligned headers (:issue:`12147`)
839
-
- Bug in :class:`.Styler.where` where ``kwargs`` were not passed to the applicable callable (:issue:`40845`)
840
848
- Bug in :meth:`DataFrame.equals`, :meth:`Series.equals`, :meth:`Index.equals` with object-dtype containing ``np.datetime64("NaT")`` or ``np.timedelta64("NaT")`` (:issue:`39650`)
841
849
- Bug in :func:`pandas.util.show_versions` where console JSON output was not proper JSON (:issue:`39701`)
842
850
- Bug in :meth:`DataFrame.convert_dtypes` incorrectly raised ValueError when called on an empty DataFrame (:issue:`40393`)
0 commit comments