Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: support using dictionaries for labeled indexing #187

Closed
shoyer opened this issue Jul 21, 2014 · 0 comments · Fixed by #291
Closed

Proposal: support using dictionaries for labeled indexing #187

shoyer opened this issue Jul 21, 2014 · 0 comments · Fixed by #291

Comments

@shoyer
Copy link
Member

shoyer commented Jul 21, 2014

A recent discussion on the Python Ideas mailing list proposed adding keyword indexing to Python's syntax (e.g., x[time='2010']):
https://mail.python.org/pipermail/python-ideas/2014-July/028250.html

In that thread, someone suggested using a dictionary for labeled indexing, as an alternative to adding new syntax. Although dedicated syntax would be nicer, I think we should consider adding this feature to xray, so we can write lines like this:

x[dict(time='2010')] = 10
@shoyer shoyer added the API label Jul 21, 2014
keewis pushed a commit to keewis/xarray that referenced this issue Jan 17, 2024
* implement filter

* test filter

* update readme with content from docs index page

* features heading

* whatsnew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant