[Python-ideas] PEP pre-draft: Support for indexing with keyword arguments
Sturla Molden
sturla.molden at gmail.com
Thu Jul 3 22:48:06 CEST 2014
Stephan Hoyer <shoyer at gmail.com> wrote:
> Yes, this is true. However, in practice many implementations of labeled
> arrays would have generic labeled axes, so they would need to use their own
> logic to do the mapping in __getitem__ anyways.
If you are thiniking about Pandas, then each keyword should be allowed to
take a slice as well.
dataframe[apples=1:3, oranges=2:6]
Sturla
More information about the Python-ideas
mailing list