{"uid":"cap_yetzgsrk_hjB_DzvUh3gj","slug":"sampling-observations-date-by-category-pivot-with-missing-value-fill-d359b478","name":"Sampling Observations Date-by-Category Pivot with Missing-Value Fill","description":"Sampling observations — Date by category pivot + Explicit missing-value fill: Date by category pivot + Explicit missing-value fill for supplied sampling observations records (sample_value, sample_weight). 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-analytics-15-189?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","sample_value","sample_weight"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"sample_value":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"sample_weight":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","sample_value":10,"dataset_group":"group-a","sample_weight":1},{"date":"2026-10-02","row_id":"row-2","sample_value":20,"dataset_group":"group-b","sample_weight":2},{"date":"2026-10-03","row_id":"row-3","sample_value":15,"dataset_group":"group-a","sample_weight":3},{"date":"2026-10-04","row_id":"row-4","sample_value":30,"dataset_group":"group-b","sample_weight":4}],"maxItems":200,"minItems":1},"field":{"enum":["sample_value","sample_weight"],"type":"string","default":"sample_value"},"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_OkqRxQK9IJlQ7ZvgOEFyH","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":"Pivots supplied sampling observation rows (sample_value or sample_weight) by date and category, then fills missing values using zero, mean, or median imputation — returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have up to 150 rows of sampling observations with row IDs, dates, dataset groups, sample values, and weights — can you pivot them by date and category and fill any missing sample_value entries using the median method?","exampleUseCases":[{"title":"Survey response data pivot","prompt":"I collected weekly survey responses across five demographic groups — each row has a date, group name, sample_value (score), and sample_weight. Can you pivot this by date and group, and fill any missing scores using the median?"},{"title":"Environmental sampling cross-tab","prompt":"I have environmental sensor readings tagged by date and monitoring zone, up to 180 rows. Please reshape them into a date-by-zone pivot table and use zero-fill for any missing sample_value readings."},{"title":"Clinical trial sample weight analysis","prompt":"Here are 120 clinical trial records with participant group, collection date, and sample_weight measurements. Can you pivot these by date and group and fill in any missing sample_weight values using the mean?"}],"resultDescription":"Two analytical reports covering: (1) a date-by-category pivot table of the selected field (sample_value or sample_weight) across all supplied rows, and (2) that same pivot with missing cells explicitly filled using the chosen method (zero, mean, or median). No external data is fetched; all computation is local to the engine using only the supplied rows (max 200).","failureModes":["Input array has fewer than 1 or more than 200 rows — request rejected","Missing required fields (row_id, dataset_group, date, sample_value, sample_weight) on any row — validation error","Date field does not match YYYY-MM-DD pattern — schema validation failure","Numeric values outside allowed range (±1,000,000,000,000) — rejection","Invalid enum value for field or method parameters — schema error","Payment of 0.01 USDC not confirmed — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you have flat sampling observation records (up to 200 rows) that need to be reshaped into a date-by-category matrix and you want explicit missing-value imputation (zero, mean, or median) in a single low-cost call. It is well-suited for survey data, environmental monitoring, or experimental sampling datasets where date and group dimensions need cross-tabulation without any external data lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:37:43.068Z","isFirstParty":false,"canonicalSlug":"sampling-observations-date-by-category-pivot-with-missing-value-fill-d359b478"}