Skip to content

Update whatsnew for issue #53115 #61586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fbourgey
Copy link
Contributor

@fbourgey fbourgey commented Jun 6, 2025

@fbourgey fbourgey mentioned this pull request Jun 6, 2025
@@ -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`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth stating that this raises a TypeError now, rather than returning incorrect results. Also IIUC, we always raise a TypeError, regardless of the presence of NaT. So maybe

Suggested change
- Bug in :meth:`DataFrame.cov` where presence of ``NaT`` in columns could lead to incorrect results or errors (:issue:`53115`)
:meth:`DataFrame.cov` raises a ``TypeError`` instead of returning potentially incorrect results or other errors (:issue:`53115`).

@mroeschke mroeschke added the Docs label Jun 6, 2025
@mroeschke mroeschke added this to the 3.0 milestone Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants