SetAtIndex / Manipulation Layer
Set values at specified row positions in a column. Similar to pandas' iloc[] assignment or R's replacement by index.
Example setting values at indices [0, 2]:
Original Column:
index | value |
---|---|
0 | A |
1 | B |
2 | C |
3 | D |
After set_at_index(indices=[0,2], value='X'):
index | value |
---|---|
0 | X |
1 | B |
2 | X |
3 | D |
Key characteristics:
- Zero-based indexing
- Multiple indices support
- Type-safe replacement
- In-place modification
- Original order preservation
Common applications:
- Data correction
- Value standardization
- Outlier treatment
- Missing value handling
- Selective updates
- Data imputation
- Quality control fixes
Table
0
0
Table
Select
columnTarget column for value replacement. Must be compatible with replacement value type. Examples:
- Numerical measurements
- Category labels
- Status indicators
- Quality flags
Indices
[u32, ...]Zero-based row positions for value replacement. Examples:
- Single index: [5]
- Multiple indices: [0,3,7]
- Range indices: [10,11,12]
- Scattered positions: [2,15,28]
Value
oneofConstString
stringText value for replacement in string columns. Examples:
- Category labels: 'Unknown'
- Status values: 'Pending'
- Missing indicators: 'N/A'
- Standard codes: 'DEFAULT'
ConstNumeric
f64Floating-point value for replacement. Use cases:
- Measurement corrections
- Standard values
- Normalized scores
- Default metrics
ConstInt64
i6464-bit signed integer for replacement. Suitable for:
- Count corrections
- ID standardization
- Integer measures
- Code values
ConstUint64
u6464-bit unsigned integer for replacement. Used for:
- Positive counts
- Record IDs
- Version numbers
- Non-negative measures
ConstBool
boolBoolean value for replacement. Common in:
- Flag corrections
- Status indicators
- Binary features
- Validity markers