{"uid":"cap_qX6PkhhNOKnoIAd5-toF2","slug":"trade-observations-adjacent-row-changes-explicit-missing-value-fill-a99c4815","name":"Trade Observations — Adjacent Row Changes + Explicit Missing-Value Fill","description":"Trade observations — Adjacent row changes + Explicit missing-value fill: Adjacent row changes + Explicit missing-value fill for supplied trade observations records (export_amount, import_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-06-162?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":20,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":15,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":30,"import_amount":4}],"maxItems":200,"minItems":1},"field":{"enum":["export_amount","import_amount"],"type":"string","default":"export_amount"},"method":{"enum":["zero","mean","median"],"type":"string","default":"median"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5gtPYdbX6qEm-3hp6bb-m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes adjacent-row delta changes and fills missing values (export_amount or import_amount) in trade observation records using zero, mean, or median imputation.","exampleAgentPrompt":"I have a set of trade records with some missing export_amount values — can you fill the gaps using median imputation and also show me how export_amount changes between consecutive rows? Here are up to 50 rows with region, date, row_id, export_amount, and import_amount fields.","exampleUseCases":[{"title":"Fill missing import values in trade dataset","prompt":"I've got a table of regional trade observations where some import_amount entries are null — can you fill those in using the mean of the other values and also give me the row-to-row change report for import_amount? I have about 120 rows with row_id, region, date, export_amount, and import_amount."},{"title":"Detect export amount shifts between dates","prompt":"Can you analyze my trade data and tell me how export_amount changes from one row to the next across all my regions? I also want any missing export_amount fields filled using zero. I have 80 rows with row_id, region, date, export_amount, and import_amount."},{"title":"Clean sparse trade records for downstream analysis","prompt":"My trade observations dataset has gaps in export_amount and I need two things: a report on adjacent row changes in export_amount, and those missing values filled using median imputation. There are about 150 rows covering multiple regions and dates."}],"resultDescription":"Two analytical reports: (1) an adjacent-row change report showing value deltas between consecutive rows for the specified field (export_amount or import_amount), and (2) an explicit missing-value fill report showing which null entries were replaced and with what imputed value (zero, mean, or median), covering up to 200 input rows.","failureModes":["Exceeds 200-row limit — request rejected or truncated","Invalid date format (not YYYY-MM-DD) — schema validation error","Missing required field (row_id, region, date) — validation failure","Values outside ±1,000,000,000,000 range — rejected by schema","Invalid method enum value — schema validation error","Empty rows array — minItems constraint violation"],"whenToPreferThis":"Choose this endpoint when you have tabular trade data (export/import amounts) and need both row-to-row delta analysis and missing-value imputation in a single call, without requiring external data, predictions, or live lookups. Ideal for offline data cleaning and exploratory economic analysis pipelines on datasets up to 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:33:20.460Z","isFirstParty":false,"canonicalSlug":"trade-observations-adjacent-row-changes-explicit-missing-value-fill-a99c4815"}