From ea3e048ee4cd1aa1cca0ed2238fff1d47b7121f2 Mon Sep 17 00:00:00 2001 From: fbourgey Date: Fri, 6 Jun 2025 08:54:42 -0400 Subject: [PATCH 1/2] update whatsnew --- doc/source/whatsnew/v3.0.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 9100ce0cdc990..e7c5a09cebe80 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -712,6 +712,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.corr` where numerical precision errors resulted in correlations above ``1.0`` (:issue:`61120`) +- Bug in :meth:`DataFrame.cov` where presence of ``NaT`` in columns could lead to incorrect results or errors (:issue:`53115`) - Bug in :meth:`DataFrame.quantile` where the column type was not preserved when ``numeric_only=True`` with a list-like ``q`` produced an empty result (:issue:`59035`) - Bug in :meth:`Series.dot` returning ``object`` dtype for :class:`ArrowDtype` and nullable-dtype data (:issue:`61375`) - Bug in ``np.matmul`` with :class:`Index` inputs raising a ``TypeError`` (:issue:`57079`) From 1f7c3d446a67adb97c5815bf919f63ab938b8048 Mon Sep 17 00:00:00 2001 From: fbourgey Date: Fri, 6 Jun 2025 09:24:20 -0400 Subject: [PATCH 2/2] improve message --- doc/source/whatsnew/v3.0.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index e7c5a09cebe80..4f8f0b9aecd06 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -712,7 +712,7 @@ Timezones Numeric ^^^^^^^ - Bug in :meth:`DataFrame.corr` where numerical precision errors resulted in correlations above ``1.0`` (:issue:`61120`) -- Bug in :meth:`DataFrame.cov` where presence of ``NaT`` in columns could lead to incorrect results or errors (:issue:`53115`) +- Bug in :meth:`DataFrame.cov` raises a ``TypeError`` instead of returning potentially incorrect results or other errors (:issue:`53115`) - Bug in :meth:`DataFrame.quantile` where the column type was not preserved when ``numeric_only=True`` with a list-like ``q`` produced an empty result (:issue:`59035`) - Bug in :meth:`Series.dot` returning ``object`` dtype for :class:`ArrowDtype` and nullable-dtype data (:issue:`61375`) - Bug in ``np.matmul`` with :class:`Index` inputs raising a ``TypeError`` (:issue:`57079`)