CSV abs integer column
csv-abs-integer-column · version 1.0.0 · CSV & tables · free, no key needed
Replace every data cell in a named CSV column with the absolute value of a canonical integer.
Use when you need to: csv abs integer column · absolute value csv integer column · csv column absolute value.
Supported
- csv abs integer column
- absolute value csv integer column
- csv column absolute value
Not supported
- floating point abs
- complex modulus
- unicode digit normalization
- read files
- fetch urls
Behavior
- The first CSV record is the header row. Duplicate and empty header names are rejected.
- column names an existing header exactly; no trimming, case folding, or fuzzy matching.
- Every data cell in column is a canonical integer string parsed with BigInt. Empty cells and non-integers are invalid. -0 is accepted and canonicalized to 0.
- Each output cell is the canonical integer string of the absolute value. The result is never negative.
- An empty document without a header is rejected. A header-only document is returned unchanged.
- Other columns and row order are preserved. The first output header name may not begin with U+FEFF.
Input
csv(string, required): max length 256000column(string, required): min length 1; max length 256
Output
csv(string, required)
Limits
- max input bytes: 256000
- max data rows: 5000
- max columns: 256
- max header name bytes: 256
- max integer digits: 1000
- max output bytes: 256000
Example
Request input:
{
"csv": "n,label\n-5,a\n0,b\n12,c\n-0,d\n",
"column": "n"
}
Response:
{
"result": {
"csv": "n,label\n5,a\n0,b\n12,c\n0,d\n"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "csv-abs-integer-column",
"version": "1.0.0",
"input": {
"csv": "n,label\n-5,a\n0,b\n12,c\n-0,d\n",
"column": "n"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/csv-abs-integer-column/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"csv":"n,label\n-5,a\n0,b\n12,c\n-0,d\n","column":"n"}'
The machine-readable contract is at /v1/tools/csv-abs-integer-column/versions/1.0.0.
CLI
node cli.mjs run csv-abs-integer-column 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- CSV clamp integer column: Clamp every data cell in a named CSV column to optional canonical integer min and max bounds.
- CSV filter equals: Keep CSV data rows whose named column equals an exact string.
- CSV scale integer column: Multiply every data cell in a named CSV column by a canonical integer factor.
- CSV sum integers: Sum a CSV column of strict signed base-10 integer strings using BigInt.
- CSV distinct values: List distinct exact values of one CSV column in first-seen order.
- CSV min max integers: Minimum and maximum of a CSV column of strict signed base-10 integer strings.