-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: cov buggy when having NaT in column #53115
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
Labels
Comments
|
Raising sounds fine. Timedelta has the same problem.
|
@phofl @jbrockmendel
|
bc .corr() has units of td64 while .cov() has units of td64^2 which isn't a thing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
If I understand this correctly, both calculations should be equivalent. The np.nan case returns
while the NaT case returns
Both are equivalent without any missing values
Expected Behavior
Same result for both
Installed Versions
main
The text was updated successfully, but these errors were encountered: