s-leroux / fin

Set of tools for personal investment
MIT License
1 stars 0 forks source link

Allow row selection using subscript notation #31

Open s-leroux opened 3 months ago

s-leroux commented 3 months ago

Currently, subscript notation in Serie only allows the selection of columns:

https://github.com/s-leroux/fin/blob/16ec6073385b4f8bfeade58370ada605d59281f3/fin/seq/serie.pyx#L400-L432

We may extend the supported notation to allow row selection as well. At a minimum, we may allow row selection based on index and index range. ~Possibly required by #30.~

s-leroux commented 3 months ago

We may use one of two "special" Python notations here. Either ... (the ellipsis) or : (the empty slice).

series["DATE","CLOSE",:,1:5]

vs

series["DATE","CLOSE",...,1:5]