>>> arr = ndtest(10)
>>> groups = (X.a['a1':], X.a[:'a8'])
>>> X.a[groups]
AttributeError Traceback (most recent call last)
[...]
AttributeError: _Axis__mapping
>>> groups = (arr.a['a1':], arr.a[:'a8'])
>>> X.a[groups]
AttributeError Traceback (most recent call last)
[...]
AttributeError: _Axis__mapping
This works though:
>>> arr.a[groups]
(a['a1':], a[:'a8'])