home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 761583682

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
761583682 PR_kwDOAMm_X84tZNhC 5876 closed 0 _season_from_months can now handle np.nan 8809578 _season_from_months can now handle np.nan and values outside of [1,12] I passed these tests: ``` def test_season(): months = np.array([ 1, 2, 3, 4, 5, np.nan]) assert ( _season_from_months(months) == np.array(['DJF', 'DJF', 'MAM', 'MAM', 'MAM', 'na']) ).all() months = np.array([ 1, 100, 3, 13, 0, -5]) assert ( _season_from_months(months) == np.array(['DJF', 'na', 'MAM', 'na', 'na', 'na']) ).all() months = np.array(range(1, 13)) assert ( _season_from_months(months) == np.array(['DJF', 'DJF', 'MAM', 'MAM', 'MAM', 'JJA', 'JJA', 'JJA', 'SON', 'SON', 'SON', 'DJF']) ).all() test_season() ``` 2021-10-19T16:04:41Z 2023-01-06T16:59:18Z 2022-01-11T16:06:18Z 2022-01-11T16:06:18Z aeb00f9da90e4485d2e94f6796c7dd96a2cb1278     0 11d2f131fe2b830ec5d9a9620a6b701724d51c62 5b322c9ea18f560e35857edcb78efe4e4f323551 CONTRIBUTOR   13221727 https://github.com/pydata/xarray/pull/5876  

Links from other tables

  • 1 row from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 0.929ms