Support filtering for entity
in Dataset.pr.loc
#222
Labels
enhancement
New feature or request
Milestone
entity
in Dataset.pr.loc
#222
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: