# Shipment Costs – Explicit Missing-Value Fill

> Shipment Costs – Explicit Missing-Value Fill is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Fills missing numeric values (weight_kg or shipping_cost) in shipment cost records using zero, mean, or median imputation across up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-shipment-costs-fill-missing?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shipment-costs-explicit-missing-value-fill-178f949a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2j85NpLRCWnPWDdpUURzY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability shipment-costs-explicit-missing-value-fill-178f949a -d '<json body>'
```

Example prompt: I have a batch of shipment records where some shipping_cost values are null — can you fill those missing values using median imputation across up to 200 rows, with fields like row_id, carrier, date, weight_kg, and shipping_cost?

## When to prefer this

Choose this endpoint when you have tabular shipment cost records with sparse null values in weight_kg or shipping_cost and need a quick, local statistical imputation (zero, mean, or median) without sending data to an external enrichment or forecasting service. Ideal for pre-processing pipelines where data cleanliness is needed before downstream analytics. Not suitable for time-series forecasting, outlier detection, or enrichment with external reference data.

## Known failure modes

- Fewer than 1 or more than 200 rows supplied — rejected with validation error
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Unknown imputation method or field enum value — schema rejection
- All values in the target field are null (mean/median undefined) — may return zeros or error
- row_id missing or empty string — required field validation failure

## How this service works

Shipment costs - Explicit missing-value fill: Explicit missing-value fill for Shipment costs. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded explicit missing-value fill deliverable.

## Output

Returns shipment records with the specified numeric field (weight_kg or shipping_cost) filled in wherever null values were present, using the selected imputation strategy (zero, mean, or median). No external data is introduced — all fill values are derived from the supplied records themselves.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "carrier",
     "date",
     "weight_kg",
     "shipping_cost"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "carrier": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "weight_kg": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "shipping_cost": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "carrier": "group-a",
     "weight_kg": 10,
     "shipping_cost": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "carrier": "group-b",
     "weight_kg": 20,
     "shipping_cost": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "carrier": "group-a",
     "weight_kg": 15,
     "shipping_cost": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "carrier": "group-b",
     "weight_kg": 30,
     "shipping_cost": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "weight_kg",
    "shipping_cost"
   ],
   "type": "string",
   "default": "weight_kg"
  },
  "method": {
   "enum": [
    "zero",
    "mean",
    "median"
   ],
   "type": "string",
   "default": "median"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shipment-costs-explicit-missing-value-fill-178f949a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
