home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1469497104

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/7630#issuecomment-1469497104 https://api.github.com/repos/pydata/xarray/issues/7630 1469497104 IC_kwDOAMm_X85Xlr8Q 5821660 2023-03-15T07:38:13Z 2023-03-15T07:38:13Z MEMBER

@AlxndrLhr .loc is positional. The correct invocation would be:

python nc.loc[dt]

This would try to locate dt in the first dimension of nc.

If you would append your time-dimension to the end, this would look like:

```python nc = nc.expand_dims(time=times_, axis=-1) nc.loc[..., dt]

or

nc.loc[:, :, dt] ```

A good first read: https://docs.xarray.dev/en/stable/user-guide/indexing.html#indexing-and-selecting-data

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1624560934
Powered by Datasette · Queries took 83.164ms · About: xarray-datasette