{"uid":"cap_1sRf493wSxbci9yG2_jPr","slug":"duplicate-observations-analytics-weighted-mean-date-category-pivot-a2d91d4c","name":"Duplicate Observations Analytics: Weighted Mean + Date-Category Pivot","description":"Duplicate observations — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied duplicate observations records (duplicate_rows, total_rows). 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-04-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","duplicate_rows","total_rows"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"total_rows":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"duplicate_rows":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","total_rows":1,"dataset_group":"group-a","duplicate_rows":10},{"date":"2026-10-02","row_id":"row-2","total_rows":2,"dataset_group":"group-b","duplicate_rows":20},{"date":"2026-10-03","row_id":"row-3","total_rows":3,"dataset_group":"group-a","duplicate_rows":15},{"date":"2026-10-04","row_id":"row-4","total_rows":4,"dataset_group":"group-b","duplicate_rows":30}],"maxItems":200,"minItems":1},"field":{"enum":["duplicate_rows","total_rows"],"type":"string","default":"duplicate_rows"}}},"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_AT7U3Pj7uOCodmEjI0kg2","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 a secondary-measure weighted mean and a date-by-category pivot table for up to 200 duplicate observation records in two bundled reports.","exampleAgentPrompt":"I have a batch of duplicate observation records with dataset groups and dates — can you run a weighted mean on the duplicate_rows field plus a date-by-category pivot across these up to 200 rows? Here's the data: row-1 on 2024-01-01 in group-a has 10 duplicate_rows out of 100 total, row-2 on 2024-01-02 in group-b has 20 duplicate_rows out of 150 total.","exampleUseCases":[{"title":"Data pipeline quality audit","prompt":"I need to audit our ETL pipeline output — I have up to 200 records each with a date, a dataset group, and counts of duplicate and total rows. Can you compute a weighted mean of duplicate_rows across groups and also pivot those duplicate counts by date and dataset category so I can spot which days and groups have the worst duplication?"},{"title":"Monthly deduplication trend review","prompt":"Here are our monthly dataset observations with duplicate_rows and total_rows for groups 'customers', 'orders', and 'products' across 2024-03-01 through 2024-03-31 — can you give me a date-by-category pivot and a weighted mean of the duplicate_rows field so we can track our deduplication progress?"},{"title":"Multi-group dataset comparison","prompt":"I have 150 observation records across four dataset groups with their duplicate and total row counts — please run a secondary-measure weighted mean on total_rows and a date-by-category pivot so I can compare how duplication varies by group and over time."}],"resultDescription":"Two bundled analytical reports: (1) a secondary-measure weighted mean of the selected field (duplicate_rows or total_rows) across supplied records, and (2) a date-by-category pivot table cross-tabulating the measure by date and dataset_group, covering up to 200 input rows. No external data is fetched; all analysis is performed on the supplied data only.","failureModes":["Missing required fields (row_id, date, dataset_group, duplicate_rows, total_rows) causes validation error","Date values not matching YYYY-MM-DD pattern are rejected","More than 200 rows submitted exceeds the per-call limit","Null numeric values may affect weighted mean computation if all weights are null","Invalid field enum value (not 'duplicate_rows' or 'total_rows') causes rejection","Empty rows array returns an error"],"whenToPreferThis":"Choose this endpoint when you have up to 200 pre-collected duplicate observation records and need both a weighted mean and a date-by-category pivot in a single low-cost call ($0.01 USDC). It is purely analytical — no external lookups, predictions, or live data access — making it ideal for offline data quality audits and deduplication reporting pipelines where you supply the raw counts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T07:05:50.981Z","isFirstParty":false,"canonicalSlug":"duplicate-observations-analytics-weighted-mean-date-category-pivot-a2d91d4c"}