Skip to content
HALOWERK

File Formats and Conversion

csv weighted decimal mean

CSV weighted average returns the total weight and decimal-weighted mean of a value column. Use it when an agent needs to reconcile measurement batches with unequal sample counts.

POST https://format.halowerk.com/v1/csv-weighted-decimal-mean

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
csvstringYes
delimiterSee schemaNo
valuestringYes
weightstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "csv": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 1
    },
    "delimiter": {
      "enum": [
        ",",
        ";",
        "\t"
      ]
    },
    "value": {
      "type": "string",
      "maxLength": 70,
      "minLength": 1
    },
    "weight": {
      "type": "string",
      "maxLength": 70,
      "minLength": 1
    }
  },
  "required": [
    "csv",
    "value",
    "weight"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "csv": "ms,n\n363,1\n1429,1",
  "value": "ms",
  "weight": "n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’