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:

IndexValue
0A
1B
2C
3D
4E
5F

After take([0, 2, 5]):

IndexValue
0A
2C
5F

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