ArgMax / List Layer
Find the index of the maximum value in each variable-length numeric list. Similar to NumPy's argmax() or R's which.max(). Returns a column of indices (0-based) pointing to the first occurrence of the maximum value in each list. Supports lists of different lengths.
Example transformation:
lists | max_index |
---|---|
[1, 5, 3, 2] | 1 |
[10, 2, 10, 8, 6] | 0 |
[-1, -5] | 0 |
[null, 1, 2, null] | 2 |
[] | null |
Common applications:
- Finding peak positions in variable-length time series
- Locating highest scores in competition rounds
- Identifying best performers in dynamic test sets
- Detecting peaks in irregular sampling periods
- Finding optimal points in adaptive algorithms
- Market analysis with varying observation windows
Note: Returns first occurrence for ties. Handles numeric lists of any length. Null values are ignored unless all values are null or list is empty, then returns null. Particularly useful for scenarios with varying numbers of observations or measurements.
Select
columnThe variable-length numeric list column to analyze. Common input patterns:
- Competition scores: [85, 92, 78, 95, 88]
- Sensor readings: [1.2, 3.4, 2.8]
- Dynamic time series: [100, 150, 120, 180]
- Adaptive measurements: [5]
- Empty state: [] Lists can have different lengths across rows, suitable for varying sample sizes
AsColumn
nameName for the new column. If not provided, the system generates a unique name. If AsColumn
matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.