issues: 535812301
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 535812301 | MDU6SXNzdWU1MzU4MTIzMDE= | 3609 | Timedelta dt accessor does not work | 189880 | closed | 0 | 4 | 2019-12-10T15:42:11Z | 2019-12-18T15:27:31Z | 2019-12-18T15:27:31Z | NONE | MCVE Code Sample```python Your code hereimport xarray as xr import datetime as dt now = dt.datetime.now() dt_array = xr.DataArray([now + dt.timedelta(seconds=i) for i in range(10)]) dt_array.dt.second #works start_t = dt_array - dt_array[0] start_t.dt.second #fails ``` Expected OutputLast line should give me the time timedelta in seconds. Instead it raises an exception. Same for hour and minute. Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3609/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |