{"uid":"cap_VyMB_t4me4LrbkKIobOdJ","slug":"customer-segment-observations-exact-row-deduplication-trailing-mean-9815b125","name":"Customer Segment Observations — Exact Row Deduplication + Trailing Mean Series","description":"Customer segment observations — Exact row deduplication + Trailing mean series: Exact row deduplication + Trailing mean series 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-045?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"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"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_RMVlA5ayvRmGijqJkHHGP","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 trailing mean time series for account_count or revenue_amount fields across up to 200 rows.","exampleAgentPrompt":"Can you deduplicate my customer segment observations and compute a trailing mean series with a window of 3 for the revenue_amount field? I have rows with row_id, company_group, date, account_count, and revenue_amount — here's my data for groups A and B across October 2026.","exampleUseCases":[{"title":"Deduplicate segment revenue time series","prompt":"I have a dataset of customer segment observations with duplicate rows that crept in during our ETL pipeline. Can you run exact deduplication on these records and also compute a trailing mean over a window of 4 for revenue_amount? The rows have row_id, company_group, date, account_count, and revenue_amount fields."},{"title":"Smooth account count trends by group","prompt":"For my two customer groups 'enterprise' and 'SMB', I have daily account_count observations going back 30 days. Can you deduplicate the records and give me a trailing mean series with window size 7 for account_count so I can see the smoothed trend?"},{"title":"Validate and smooth segment data before reporting","prompt":"Before I build my weekly segment report, I need to remove any exact duplicate rows from my customer segment observations and get a rolling 5-day trailing mean for revenue_amount. My data has company_group, date, account_count, and revenue_amount — can you run both reports at once?"}],"resultDescription":"Returns two reports: (1) an exact row deduplication report identifying and removing fully duplicate records from the supplied customer segment observations, and (2) a trailing mean time series for the selected field (account_count or revenue_amount) computed over the specified window size, both derived locally from the submitted data with no external lookups.","failureModes":["Input rows exceed 200 item limit — request rejected","Missing required fields (row_id, company_group, date, account_count, or revenue_amount) — validation error","Invalid date format not matching YYYY-MM-DD pattern — schema error","Window size outside allowed range of 2–200 — validation error","Field value not one of 'account_count' or 'revenue_amount' — enum validation error","Numeric values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000) — schema error"],"whenToPreferThis":"Choose this endpoint when you need both exact duplicate row removal and a trailing mean smoothing series computed together in a single call on customer segment observation data (account_count, revenue_amount) with up to 200 rows. It is purpose-built for this specific schema and field combination, delivering two analytical reports for a single low flat fee without requiring external data access or live computation infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:44:58.262Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-exact-row-deduplication-trailing-mean-9815b125"}