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:

indexvalue
0A
1B
2C
3D

After set_at_index(indices=[0,2], value='X'):

indexvalue
0X
1B
2X
3D

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

column

Target 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

oneof
ConstString

Text value for replacement in string columns. Examples:

  • Category labels: 'Unknown'
  • Status values: 'Pending'
  • Missing indicators: 'N/A'
  • Standard codes: 'DEFAULT'

Floating-point value for replacement. Use cases:

  • Measurement corrections
  • Standard values
  • Normalized scores
  • Default metrics

64-bit signed integer for replacement. Suitable for:

  • Count corrections
  • ID standardization
  • Integer measures
  • Code values

64-bit unsigned integer for replacement. Used for:

  • Positive counts
  • Record IDs
  • Version numbers
  • Non-negative measures
false

Boolean value for replacement. Common in:

  • Flag corrections
  • Status indicators
  • Binary features
  • Validity markers