Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, slicing correctly uses inclusive lower and exclusive upper bounds. However, a really useful piece of slicing syntax we are currently missing from PyDML is the ability to have implicit lower or upper bounds, i.e., X[:3,] should return all rows up to (but not including) 3. This means that the implicit lower bound is 0. Similarly, X[2:,] should return all rows starting at row 2 (0-based), which implies that the upper bound is equal to the number of rows of X.
We should update the grammar to allow these cases, row both row and column slicing. More generally, X[:,:], should also be valid, regardless if it is useful.
Attachments
Issue Links
- is related to
-
SYSTEMDS-689 Add Negative Bounds to PyDML
- Closed
-
SYSTEMDS-690 Add reverse slicing to PyDML
- Closed
-
SYSTEMDS-516 Index Range Slicing Should Allow Implicit Upper Or Lower Bounds
- Closed