{"uid":"cap_pKctzZ1AmSzK-MRceGVcu","slug":"customer-segment-observations-exact-row-deduplication-secondary-a4ed8423","name":"Customer Segment Observations — Exact Row Deduplication + Secondary-Measure Weighted Mean","description":"Customer segment observations — Exact row deduplication + Secondary-measure weighted mean: Exact row deduplication + Secondary-measure weighted mean for supplied customer segment observations records (account_count, revenue_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-company-16-051?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","account_count","revenue_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"account_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80},"revenue_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","account_count":10,"company_group":"group-a","revenue_amount":1},{"date":"2026-10-02","row_id":"row-2","account_count":20,"company_group":"group-b","revenue_amount":2},{"date":"2026-10-03","row_id":"row-3","account_count":15,"company_group":"group-a","revenue_amount":3},{"date":"2026-10-04","row_id":"row-4","account_count":30,"company_group":"group-b","revenue_amount":4}],"maxItems":200,"minItems":1},"field":{"enum":["account_count","revenue_amount"],"type":"string","default":"account_count"}}},"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_G_0kZckyOt0tS5pZD6aOb","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":"Deduplicates customer segment observation rows exactly and computes a secondary-measure (revenue_amount) weighted mean across account_count or revenue_amount fields, returning two analytical reports for up to 200 rows.","exampleAgentPrompt":"Can you deduplicate these customer segment observation rows and compute the revenue_amount-weighted mean for account_count? I have about 50 rows with row_id, company_group, date, account_count, and revenue_amount fields.","exampleUseCases":[{"title":"Deduplicating quarterly segment revenue data","prompt":"I have 120 rows of customer segment data by company group and date — some rows are duplicates. Can you run exact deduplication and give me the weighted mean of revenue_amount using account_count as the measure field?"},{"title":"Cleaning account count observations before reporting","prompt":"Before I finalize my segment report, I need to deduplicate these 80 observation records and get a weighted mean for account_count weighted by revenue_amount — the data has row_id, company_group, date, account_count, and revenue_amount columns."},{"title":"Auditing segment data quality across company groups","prompt":"Can you take these 200 customer segment rows — with fields for row_id, company_group, date, account_count, and revenue_amount — deduplicate them exactly and compute the revenue_amount weighted mean so I can audit data quality across our company groups?"}],"resultDescription":"Returns two analytical reports: one showing the results of exact row deduplication (identifying and removing fully duplicate records) and one providing the secondary-measure weighted mean calculation across the specified field (account_count or revenue_amount), processed locally without external lookups or predictions.","failureModes":["More than 200 rows submitted — request rejected due to maxItems constraint","Missing required fields (row_id, company_group, date, account_count, or revenue_amount) cause validation errors","Invalid date format (not YYYY-MM-DD pattern) causes schema rejection","Invalid field enum value (not account_count or revenue_amount) causes error","Empty rows array (minItems: 1 not met) rejected","Numeric values outside ±1,000,000,000,000 range cause validation failure","Payment of 0.01 USDC not provided or fails — endpoint returns 402"],"whenToPreferThis":"Choose this endpoint when you need to programmatically clean customer segment observation data by removing exact duplicate rows AND compute a weighted mean statistic in a single paid call. It is ideal for pre-reporting data quality checks on segment-level data (account_count, revenue_amount) organized by company_group and date. Prefer this over general-purpose data tools when working within the x402 micropayment ecosystem and needing two bundled analytical outputs (deduplication + weighted mean) at low cost for datasets up to 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T06:58:35.182Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-exact-row-deduplication-secondary-a4ed8423"}