-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Test failures with pandas master #3673
Comments
So there are two classes of failures here:
Failure
Failure
(2) is simple. Basically due to a planned change1 in pandas, the test needs to be edited. In xarray we still expect (1) is trickier; I'm not sure if it's something we should raise in the pandas issue tracker. Essentially we rely on 1See this FutureWarning:
|
|
@jbrockmendel likely knows more about the index arithmetic issue. In [22]: import xarray as xr
In [23]: import pandas as pd
In [24]: idx = pd.timedelta_range("1D", periods=5, freq="D")
In [25]: a = xr.cftime_range("2000", periods=5)
In [26]: idx + a
/Users/taugspurger/sandbox/pandas/pandas/core/arrays/datetimelike.py:1204: PerformanceWarning: Adding/subtracting array of DateOffsets to TimedeltaArray not vectorized
PerformanceWarning,
Out[26]:
Index([2000-01-02 00:00:00, 2000-01-04 00:00:00, 2000-01-06 00:00:00,
2000-01-08 00:00:00, 2000-01-10 00:00:00],
dtype='object')
In [27]: a + idx
Out[27]:
CFTimeIndex([2000-01-02 00:00:00, 2000-01-04 00:00:00, 2000-01-06 00:00:00,
2000-01-08 00:00:00, 2000-01-10 00:00:00],
dtype='object') |
we recently changed datetimelike arithmetic to send all object-dtype arrays through _addsub_object_array (previously _addsub_offsetlike). Previously I think |
Thanks @jbrockmendel should we open a pandas issue? |
Opened pandas-dev/pandas#31109. |
Thanks @TomAugspurger |
should be closed by pandas-dev/pandas#31136 . I think the tests will turn green once the wheels update |
FYI, we had some failures in our nightly wheel builds so they weren't
updated in a while. MacPython/pandas-wheels#70
fixed that, so you'll hopefully get a new wheel tonight.
…On Tue, Jan 28, 2020 at 5:09 PM Deepak Cherian ***@***.***> wrote:
should be closed by pandas-dev/pandas#31136
<pandas-dev/pandas#31136> . I think the tests
will turn green once the wheels update
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3673?email_source=notifications&email_token=AAKAOISQMX62U3JJPLTYVEDRAC3JRA5CNFSM4KEMIFRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFLHSQ#issuecomment-579515338>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAOIT7GKDFDJV4LFZA4YDRAC3JRANCNFSM4KEMIFRA>
.
|
Thanks for the fixes @TomAugspurger! |
all green! (https://github.com/pydata/xarray/runs/415513689) Thanks Tom |
https://dev.azure.com/xarray/xarray/_build/results?buildId=1859&view=logs&jobId=41d90575-019f-5cfd-d78e-c2adebf9a30b&j=41d90575-019f-5cfd-d78e-c2adebf9a30b
The text was updated successfully, but these errors were encountered: