Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
MNT/TST: remove xcorr and acorr from test_datetime#27427
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
6a16664
to99fab6a
Compare
If we claim to support it, i.e. this participates in units, then it should probably be tested. Also timedeltas are common for thesehttps://online.stat.psu.edu/stat462/node/188/ |
Xcorr and acorr do not participate in units. Both work by assuming x and y are spaced equally in time (or space). You can of course assign units to the lags, but we do not try to do this in xcorr/acorr. |
It might be good to generate a table of what participates in units and what doesn't, possibly added either tohttps://matplotlib.org/devdocs/users/explain/axes/axes_units.html#more-about-unit-support orhttps://matplotlib.org/devdocs/api/units_api.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I agree that these should be removed. Some formatting, although I think that this probably should not go on the same line. Maybe better to add it on the next line? Or as an admonition?
Uh oh!
There was an error while loading.Please reload this page.
lib/matplotlib/axes/_axes.py Outdated
@@ -2055,7 +2056,9 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none, | |||
Parameters | |||
---------- | |||
x, y : array-like of length n | |||
x, y : array-like of length n. Neither x nor y are run through |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
x,y :array-likeoflengthn.Neitherxnoryarerunthrough | |
x,y :array-likeoflengthn.Neither*x*nor*y*arerunthrough |
07ed125
to1f37e49
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
1f37e49
tocb5463d
Comparecb5463d
to403873f
CompareUh oh!
There was an error while loading.Please reload this page.
2b26a0a
to7cfd688
Compare
Currently
xcorr
andacorr
are intest_datetimes.py
. However, I think it is highly unlikely anyone would want to pass datetimes in asx
values to either of these methods. It is also not clear what giving the unit conversion means for these arguments. Modified the docstrings to make this clear.