issue_comments: 574256856
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/3673#issuecomment-574256856 | https://api.github.com/repos/pydata/xarray/issues/3673 | 574256856 | MDEyOklzc3VlQ29tbWVudDU3NDI1Njg1Ng== | 1312546 | 2020-01-14T16:25:50Z | 2020-01-14T16:25:50Z | MEMBER | @jbrockmendel likely knows more about the index arithmetic issue. ```python 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') ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
547012915 |