TakeByIndex / Manipulation Layer
Select specific rows using their index positions (zero-based). Similar to pandas' iloc[indices] or R's slice(indices).
Example selecting indices [0, 2, 5]:
Original DataFrame:
Index | Value |
---|---|
0 | A |
1 | B |
2 | C |
3 | D |
4 | E |
5 | F |
After take([0, 2, 5]):
Index | Value |
---|---|
0 | A |
2 | C |
5 | F |
Common applications:
- Selective record retrieval
- Custom sampling patterns
- Specific case analysis
- Reference point comparison
- Key observation extraction
- Pattern-based selection
- Systematic sampling
- Cross-sectional analysis
Note: Output maintains original row relationships and all columns.
Table
0
0
Table
Indices
[u32, ...]Zero-based indices of rows to select. Common patterns:
- Sequential: [0,1,2,3] for first four rows
- Spaced: [0,5,10,15] for regular intervals
- Custom: [1,7,42] for specific points
- Systematic: [0,10,20,30] for decimated sampling
- Reference: [0,-1] for first and last elements