Skip to content

Commit b28d3b3

Browse files
committed
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_groups
2 parents 5aace24 + 90eff9d commit b28d3b3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/source/whatsnew/v1.2.1.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _whatsnew_121:
22

3-
What's new in 1.2.1 (January ??, 2021)
3+
What's new in 1.2.1 (January 18, 2021)
44
--------------------------------------
55

66
These are the changes in pandas 1.2.1. See :ref:`release` for a full changelog
@@ -33,6 +33,7 @@ Fixed regressions
3333
- Fixed regression in :meth:`DataFrame.groupby` when aggregating an :class:`ExtensionDType` that could fail for non-numeric values (:issue:`38980`)
3434
- Fixed regression in :meth:`DataFrame.loc.__setitem__` raising ``KeyError`` with :class:`MultiIndex` and list-like columns indexer enlarging :class:`DataFrame` (:issue:`39147`)
3535
- Fixed regression in comparisons between ``NaT`` and ``datetime.date`` objects incorrectly returning ``True`` (:issue:`39151`)
36+
- Fixed regression in :func:`pandas.testing.assert_index_equal` raising ``TypeError`` with ``check_order=False`` when :class:`Index` has mixed dtype (:issue:`39168`)
3637

3738
.. ---------------------------------------------------------------------------
3839
@@ -43,7 +44,6 @@ Bug fixes
4344

4445
- Bug in :meth:`read_csv` with ``float_precision="high"`` caused segfault or wrong parsing of long exponent strings. This resulted in a regression in some cases as the default for ``float_precision`` was changed in pandas 1.2.0 (:issue:`38753`)
4546
- Bug in :func:`read_csv` not closing an opened file handle when a ``csv.Error`` or ``UnicodeDecodeError`` occurred while initializing (:issue:`39024`)
46-
- Bug in :func:`pandas.testing.assert_index_equal` raising ``TypeError`` with ``check_order=False`` when :class:`Index` has mixed dtype (:issue:`39168`)
4747

4848
.. ---------------------------------------------------------------------------
4949
@@ -57,8 +57,6 @@ Other
5757
- Bumped minimum pymysql version to 0.8.1 to avoid test failures (:issue:`38344`)
5858
- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`)
5959
- Added reference to backwards incompatible ``check_freq`` arg of :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` in :ref:`pandas 1.1.0 whats new <whatsnew_110.api_breaking.testing.check_freq>` (:issue:`34050`)
60-
-
61-
-
6260

6361
.. ---------------------------------------------------------------------------
6462

pandas/core/generic.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10587,8 +10587,10 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
1058710587
# [assignment]
1058810588
cls.all = all # type: ignore[assignment]
1058910589

10590+
# error: Argument 1 to "doc" has incompatible type "Optional[str]"; expected
10591+
# "Union[str, Callable[..., Any]]"
1059010592
@doc(
10591-
NDFrame.mad,
10593+
NDFrame.mad.__doc__, # type: ignore[arg-type]
1059210594
desc="Return the mean absolute deviation of the values "
1059310595
"over the requested axis.",
1059410596
name1=name1,

pandas/io/formats/style.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _init_tooltips(self):
222222
if self.tooltips is None:
223223
self.tooltips = _Tooltips()
224224

225-
def set_tooltips(self, ttips: DataFrame) -> "Styler":
225+
def set_tooltips(self, ttips: DataFrame) -> Styler:
226226
"""
227227
Add string based tooltips that will appear in the `Styler` HTML result. These
228228
tooltips are applicable only to`<td>` elements.
@@ -268,7 +268,7 @@ def set_tooltips_class(
268268
self,
269269
name: Optional[str] = None,
270270
properties: Optional[Sequence[Tuple[str, Union[str, int, float]]]] = None,
271-
) -> "Styler":
271+
) -> Styler:
272272
"""
273273
Manually configure the name and/or properties of the class for
274274
creating tooltips on hover.

0 commit comments

Comments
 (0)