issues: 124685682
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
124685682 | MDU6SXNzdWUxMjQ2ODU2ODI= | 701 | BUG: not converting datetime64[ns] with tz from pandas.Series | 953992 | closed | 0 | 3 | 2016-01-04T02:04:27Z | 2019-01-22T19:36:41Z | 2019-01-22T19:36:41Z | MEMBER | ``` In [5]: s = Series(pd.date_range('20130101',periods=3,tz='US/Eastern')) In [6]: s Out[6]: 0 2013-01-01 00:00:00-05:00 1 2013-01-02 00:00:00-05:00 2 2013-01-03 00:00:00-05:00 dtype: datetime64[ns, US/Eastern] In [7]: xray.DataArray.from_series(s) Out[7]: <xray.DataArray (index: 3)> array(['2013-01-01T00:00:00.000000000-0500', '2013-01-02T00:00:00.000000000-0500', '2013-01-03T00:00:00.000000000-0500'], dtype='datetime64[ns]') Coordinates: * index (index) int64 0 1 2 In [8]: xray.DataArray.from_series(s).to_pandas() Out[8]: index 0 2013-01-01 05:00:00 1 2013-01-02 05:00:00 2 2013-01-03 05:00:00 dtype: datetime64[ns] ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/701/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |