home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 156620638

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
156620638 MDExOlB1bGxSZXF1ZXN0MTU2NjIwNjM4 1762 closed 0 ENH: Add dt.date accessor. 2448579 This PR lets us access `dt.date` thereby removing all higher frequency time information. *Use case:* Just like `dayofyear` but easier to interpret when only looking at 1 year of data. *Example:* Start with `da.time` ``` <xarray.DataArray 'time' (time: 8737)> array(['2014-01-01T00:00:00.000000000', '2014-01-01T01:00:00.000000000', '2014-01-01T02:00:00.000000000', ..., '2014-12-30T22:00:00.000000000', '2014-12-30T23:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 2014-01-01 2014-01-01T01:00:00 ... ``` then `da.time.dt.date` yields ``` <xarray.DataArray 'date' (time: 8737)> array(['2014-01-01T00:00:00.000000000', '2014-01-01T00:00:00.000000000', '2014-01-01T00:00:00.000000000', ..., '2014-12-30T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]') Coordinates: * time (time) datetime64[ns] 2014-01-01 2014-01-01T01:00:00 ... ``` - [x] Tests added (for all bug fixes or enhancements) - [x] Tests passed (for all non-documentation changes) - [x] Passes ``git diff upstream/master **/*py | flake8 --diff`` (remove if you did not edit any Python files) - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later) 2017-12-06T01:43:51Z 2018-05-10T05:12:15Z 2018-01-14T00:28:11Z   ff2238eecd05777da0c0d7fc04140df25084f8b7     0 78ffd07dd119c3e10dc5e05ca5abd3fc333f7acc c2b205f29467a4431baa80b5c07fe31bda67fbef MEMBER   13221727 https://github.com/pydata/xarray/pull/1762  

Links from other tables

  • 0 rows from pull_requests_id in labels_pull_requests
Powered by Datasette ยท Queries took 80.236ms