pull_requests: 15767015
This data as json
id | node_id | number | state | locked | title | user | body | created_at | updated_at | closed_at | merged_at | merge_commit_sha | assignee | milestone | draft | head | base | author_association | auto_merge | repo | url | merged_by |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15767015 | MDExOlB1bGxSZXF1ZXN0MTU3NjcwMTU= | 125 | closed | 0 | Only copy datetime64 data if it is using non-nanosecond precision. | 514053 | In an attempt to coerce all datetime arrays to nano second resolutoin utils.as_safe_array() was creating copies of any datetime64 array (via the astype method). This was causing unexpected behavior (bugs) for things such as concatenation over times. (see below). ``` import xray import pandas as pd ds = xray.Dataset() ds['time'] = ('time', pd.date_range('2011-09-01', '2011-09-11')) times = [ds.indexed(time=[i]) for i in range(10)] ret = xray.Dataset.concat(times, 'time') print ret['time'] <xray.DataArray 'time' (time: 10)> array(['1970-01-02T07:04:40.718526408-0800', '1969-12-31T16:00:00.099966608-0800', '1969-12-31T16:00:00.041748384-0800', '1969-12-31T16:00:00.041748360-0800', '1969-12-31T16:00:00.041748336-0800', '1969-12-31T16:00:00.041748312-0800', '1969-12-31T16:00:00.041748288-0800', '1969-12-31T16:00:00.041748264-0800', '1969-12-31T16:00:00.041748240-0800', '1969-12-31T16:00:00.041748216-0800'], dtype='datetime64[ns]') Attributes: Empty ``` | 2014-05-12T13:36:22Z | 2014-05-20T19:09:40Z | 2014-05-20T19:09:40Z | e255f9e632bd646190ba6433599ccea7e122cc7f | 0 | d09708a119d8ca90298673ecd982414017ef53de | 8f667bef6e190764cdd801fc857f94f23c8a36c2 | CONTRIBUTOR | 13221727 | https://github.com/pydata/xarray/pull/125 |
Links from other tables
- 1 row from pull_requests_id in labels_pull_requests