larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

Tutorial - Getting Started: find a better example for [start:] in selection #1035

Open alixdamman opened 1 year ago

alixdamman commented 1 year ago

See

>>> population[:'18-66', 2017:]

  age  gender\time  2017
  0-9       female   634
  0-9         male   664
10-17       female   491
10-17         male   516
18-66       female  3583
18-66         male  3616

in selecting subset

gdementen commented 1 year ago

for our future selves, the problem is that 2017 is the last label, so the None upper bound does not select anything