{"uid":"cap_itjs2C-ss0cYnQZMPfYTv","slug":"duplicate-observations-secondary-measure-weighted-mean-keyed-dataset-b3d2fa0f","name":"Duplicate Observations — Secondary-Measure Weighted Mean + Keyed Dataset Comparison","description":"Duplicate observations — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison 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-186?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"},"other":{"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":21},{"date":"2026-10-03","row_id":"row-3","total_rows":3,"dataset_group":"group-a","duplicate_rows":17},{"date":"2026-10-04","row_id":"row-4","total_rows":4,"dataset_group":"group-b","duplicate_rows":33}],"maxItems":200,"minItems":0}}},"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_mBrDQ_6fi5qHl2GClZv19","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 on duplicate observation records and compares two keyed datasets, producing two analytical reports for up to 200 rows.","exampleAgentPrompt":"I have two sets of duplicate observation records — each row has a row_id, dataset_group, date, duplicate_rows, and total_rows — and I want you to compute the secondary-measure weighted mean for duplicate_rows across both sets and give me a keyed comparison report between them. Here's my primary dataset (4 rows across group-a and group-b from 2026-10-01 to 2026-10-04) and my comparison dataset with slightly different duplicate counts.","exampleUseCases":[{"title":"Pipeline deduplication audit comparison","prompt":"I ran deduplication on two versions of my data pipeline and have duplicate_rows and total_rows for each group and date in both runs. Can you compute the weighted mean of duplicate_rows (weighted by total_rows) for each run and compare the two datasets keyed by row_id and dataset_group?"},{"title":"Weekly duplicate rate weighted mean","prompt":"I have this week's duplicate observation counts for groups A and B across 10 dates, plus last week's counts as a reference dataset. Compute the secondary-measure weighted mean of duplicate_rows using total_rows as the weight for both, and show me how they differ."},{"title":"Cross-team dataset quality validation","prompt":"My team and another team both produced duplicate-row counts for the same 50 records across the same date range. Can you run a weighted mean of duplicate_rows weighted by total_rows on each team's dataset and flag where the keyed comparisons diverge?"}],"resultDescription":"Two independent analytical reports: (1) a secondary-measure weighted mean of the selected field (duplicate_rows or total_rows) computed across the primary input rows, and (2) a keyed dataset comparison between the primary rows and the secondary 'other' rows, highlighting differences by row_id and dataset_group. No external lookups or predictions are made; all computation is local.","failureModes":["Input array exceeds 200 rows — request rejected","Missing required fields (row_id, dataset_group, date, duplicate_rows, total_rows) — validation error","Date field does not match YYYY-MM-DD pattern — schema validation failure","Null numeric values may affect weighted mean calculation if not handled","Empty rows array (minItems:1 not met) — request rejected","Mismatched or unkeyed rows between primary and 'other' dataset may yield empty comparison results"],"whenToPreferThis":"Choose this endpoint when you need both a weighted mean computation (using a secondary numeric measure as weights) and a structured keyed comparison between two datasets of duplicate observation records in a single call. It is ideal for data quality audits, pipeline deduplication validation, and before/after duplicate count comparisons across up to 200 rows per dataset. Prefer it over single-report endpoints when you want both analyses for the same data in one $0.01 payment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T07:19:42.208Z","isFirstParty":false,"canonicalSlug":"duplicate-observations-secondary-measure-weighted-mean-keyed-dataset-b3d2fa0f"}