{"uid":"cap_qgRUehMEIHV2Ja8ZQwZxy","slug":"company-headcount-observations-secondary-measure-weighted-mean-1e5c655b","name":"Company Headcount Observations — Secondary-Measure Weighted Mean + Explicit Missing-Value Fill","description":"Company headcount observations — Secondary-measure weighted mean + Explicit missing-value fill: Secondary-measure weighted mean + Explicit missing-value fill for supplied company headcount observations records (headcount, open_roles). 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-12-187?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","headcount","open_roles"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"headcount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"open_roles":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"company_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","headcount":10,"open_roles":1,"company_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","headcount":20,"open_roles":2,"company_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","headcount":15,"open_roles":3,"company_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","headcount":30,"open_roles":4,"company_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["headcount","open_roles"],"type":"string","default":"headcount"},"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__122FNj7YN3Esb9wYCwEF","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 fills missing values in company headcount observation records (headcount and open_roles) for up to 200 rows.","exampleAgentPrompt":"I have a batch of company headcount records (up to 50 rows across groups like 'engineering' and 'sales') with some null headcount values — can you compute the secondary-measure weighted mean using open_roles as the secondary measure and fill missing headcount values using median imputation?","exampleUseCases":[{"title":"Impute missing headcount in HR dataset","prompt":"I have 80 rows of monthly headcount observations for several company groups and some entries have null headcount values — please fill the missing headcount values using mean imputation and return the weighted mean using open_roles as the secondary measure."},{"title":"Open roles gap-filling for workforce planning","prompt":"My workforce dataset has 120 rows with company_group, date, headcount, and open_roles fields, but open_roles is missing for some rows — can you fill those gaps using median fill and compute the secondary-measure weighted mean for open_roles?"},{"title":"Cross-group headcount aggregation with outlier handling","prompt":"I've got two company groups, 'group-alpha' and 'group-beta', with daily headcount observations across 60 rows — run the secondary-measure weighted mean calculation on headcount and fill any nulls with zero so I can compare the groups cleanly."}],"resultDescription":"Returns two analytical reports per call: (1) a secondary-measure weighted mean computed over the specified field (headcount or open_roles), using the other measure as a weight; and (2) an explicit missing-value fill applied to null entries using the specified method (zero, mean, or median). Results cover up to 200 submitted rows and are computed locally without external data lookup.","failureModes":["More than 200 rows submitted — request exceeds maxItems limit and will be rejected","Missing required fields (row_id, company_group, date, headcount, or open_roles) cause validation errors","Invalid date format (not YYYY-MM-DD) results in schema validation failure","Invalid enum value for 'field' or 'method' parameter causes a bad request error","Payment not provided or insufficient USDC balance results in 402 Payment Required","All values for the target field are null — weighted mean cannot be computed meaningfully"],"whenToPreferThis":"Choose this endpoint when you have tabular company headcount or open_roles data with potential null values and need both a statistically weighted summary (using the secondary measure as weights) and clean missing-value imputation in a single low-cost call. It is ideal for HR analytics pipelines, workforce planning preprocessing, or any scenario where you need to normalize sparse headcount observations across company groups without connecting to an external data source.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:46:06.402Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-secondary-measure-weighted-mean-1e5c655b"}