home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1197655735

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
1197655735 I_kwDOAMm_X85HYsa3 6459 Support **kwargs form in `.chunk()` 14314623 closed 0     0 2022-04-08T18:21:22Z 2022-04-11T19:36:40Z 2022-04-11T19:36:40Z CONTRIBUTOR      

Is your feature request related to a problem?

Take a simple example

python import xarray as xr da = xr.DataArray([1,2,4], dims=['x']) If I want to chunk the array I can do: python da.chunk({'x':1})

but I cant do this: python da.chunk(x=1)

TypeError: chunk() got an unexpected keyword argument 'x'

Describe the solution you'd like

I would like to be able to use the .chunk() method for dataarrays in both ways, since it is common for many xarray methods to work either way (e.g. isel()/coarsen()/etc).

@TomNicholas

Describe alternatives you've considered

No response

Additional context

No response

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6459/reactions",
    "total_count": 4,
    "+1": 4,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.608ms · About: xarray-datasette