You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we shouldn't do this because the return value of ds.pr.loc is not clearly defined anymore. If entity is in the filter, the return value is a DataArray, if entity is not in the filter, it is a Dataset. That's annoying because static type inference doesn't work anymore. So maybe we shouldn't overcomplicate things and live with the fact that filtering for entities is different from filtering for anything else.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
To filter a dataset for the entity and other dimensions, you have to write:
that's annoying because you have to treat
entity
different than other dimensions.Describe the solution you'd like
We enhance the dataset loc accessor such that
is valid.
Describe alternatives you've considered
Maybe we shouldn't do this because the return value of
ds.pr.loc
is not clearly defined anymore. Ifentity
is in the filter, the return value is a DataArray, ifentity
is not in the filter, it is a Dataset. That's annoying because static type inference doesn't work anymore. So maybe we shouldn't overcomplicate things and live with the fact that filtering for entities is different from filtering for anything else.The text was updated successfully, but these errors were encountered: