Slice / Manipulation Layer
Extract a contiguous subset of rows from the DataFrame. Similar to pandas' iloc[start:start+length] or R's slice().
Examples:
- start=0, length=5: First 5 rows
- start=10, length=3: Rows 11-13
- start=-5, length=5: Last 5 rows
Visual representation: Full Data: [0,1,2,3,4,5,6,7,8,9] start=2, length=4: [2,3,4,5]
Common applications:
- Time period extraction
- Batch processing
- Window analysis
- Data partitioning
- Sequential processing
- Range selection
- Subset analysis
- Segment isolation
Note: All columns are retained for selected rows, maintaining data relationships.
Table
0
0
Table
StartIndex
i64Starting row position (zero-based indexing). Usage:
- Positive: Count from start (0 = first row)
- Negative: Count from end (-1 = last row)
Common patterns:
- 0: Start from beginning
- 100: Skip first 100 rows
- -50: Start 50 rows from end
- -1000: Last thousand rows
Length
u64Number of consecutive rows to select. Examples:
- 10: Quick sample size
- 100: Standard batch size
- 1000: Large segment analysis
- 24: Daily data points
- 7: Weekly periods
- 30: Monthly sections