{"uid":"cap_N2wxrpOR85uWNNo0_L-yI","slug":"trade-observations-equal-width-histogram-with-missing-value-fill-763eaa0e","name":"Trade Observations Equal-Width Histogram with Missing-Value Fill","description":"Trade observations — Equal-width histogram + Explicit missing-value fill: Equal-width histogram + 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-175?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","default":5,"maximum":30,"minimum":1},"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_f7G-B-apmjXqd87bGPbEN","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":"Generates an equal-width histogram and fills missing values for trade observation records (export_amount and import_amount) across up to 200 rows.","exampleAgentPrompt":"I have 150 trade observation rows with export_amount and import_amount fields — some values are null. Can you generate a 10-bin equal-width histogram for export_amount and fill in the missing values using the median method?","exampleUseCases":[{"title":"Distribution analysis of regional exports","prompt":"I've got trade data for 80 regions with export_amount values, some missing. Build a 5-bin equal-width histogram on export_amount and fill the nulls with the mean, so I can see how exports are distributed."},{"title":"Import data cleaning for quarterly report","prompt":"My trade dataset has 120 rows of import_amount figures but about 15 are null. Can you fill those missing import_amount values using median imputation and also give me a 8-bin histogram so I can see the distribution?"},{"title":"Trade balance frequency bucketing","prompt":"I need to analyze the spread of export_amount across 200 trade observation records — group them into 12 equal-width bins and use zero-fill for any missing values, then show me the frequency counts per bin."}],"resultDescription":"Returns two analytical reports: (1) an equal-width histogram partitioning the chosen field (export_amount or import_amount) into the specified number of bins with frequency counts and bin boundaries, and (2) a report showing how missing values in the field were filled using the chosen method (zero, mean, or median). All computation is local with no external lookups.","failureModes":["Fewer than 1 row or more than 200 rows submitted returns a validation error","bin count outside 1–30 triggers a schema validation failure","Invalid date format (not YYYY-MM-DD) causes row rejection","Supplying an invalid fill method enum value causes a parameter error","All values null for the target field may produce degenerate histogram results","row_id missing or empty string causes row-level validation failure"],"whenToPreferThis":"Choose this endpoint when you need both distribution analysis (histogram) and missing-value imputation for trade-specific numeric fields (export_amount, import_amount) in a single low-cost call. Ideal for economics or trade analysts who need quick statistical summaries without connecting to live data sources or prediction APIs. At $0.01 USDC for two reports on up to 200 rows, it is cost-effective for batch data-cleaning and exploratory analysis pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:36.062Z","isFirstParty":false,"canonicalSlug":"trade-observations-equal-width-histogram-with-missing-value-fill-763eaa0e"}