{"uid":"cap_fddlq0qfGlQ4slXTf2Os1","slug":"company-headcount-observations-date-by-category-pivot-missing-value-945e56f7","name":"Company Headcount Observations — Date-by-Category Pivot + Missing-Value Fill","description":"Company headcount observations — Date by category pivot + Explicit missing-value fill: Date by category pivot + 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-189?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_Irh7z5F3V1YRMpftWZt-a","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":"Transforms up to 200 company headcount observation rows into a date-by-category pivot table and fills missing values using zero, mean, or median imputation.","exampleAgentPrompt":"I have up to 200 rows of company headcount observations with dates, company groups, headcount, and open_roles — can you pivot them by date and category and fill any missing headcount values using median imputation?","exampleUseCases":[{"title":"Monthly headcount gap filling across divisions","prompt":"I have headcount records for our divisions from January through June but some dates are missing data — can you pivot the headcount field by date and company group and fill the gaps using the median?"},{"title":"Open roles pivot for recruiting dashboard","prompt":"Take these 150 rows of company open_roles observations across our business units and pivot them into a date-by-group matrix, filling any missing cells with zero so I can load it into our recruiting dashboard."},{"title":"Cross-company workforce trend reshaping","prompt":"I've got headcount observations for three company groups over the past quarter — restructure them into a wide pivot table by date and company_group, and fill missing values using the mean so trends are comparable across groups."}],"resultDescription":"Returns two analytical reports: (1) a date-by-category pivot table of the selected field (headcount or open_roles) with rows as dates and columns as company_group values, and (2) the same dataset with explicit missing-value fill applied using the chosen method (zero, mean, or median). Both reports are computed locally from the supplied rows without external data.","failureModes":["Fewer than 1 row supplied — minimum input requirement not met","Rows missing required fields (row_id, company_group, date, headcount, or open_roles) — validation error","Date strings not matching YYYY-MM-DD pattern — schema rejection","More than 200 rows supplied — exceeds maxItems limit","Invalid field enum value (not headcount or open_roles) — rejected","Invalid method enum value (not zero, mean, or median) — rejected","Payment not completed — x402 payment required before processing"],"whenToPreferThis":"Choose this endpoint when you have pre-collected company headcount or open_roles observations (up to 200 rows) and need to reshape them into a date-by-category pivot table AND fill missing values in a single low-cost call. Ideal for HR analytics pipelines, recruiting dashboards, or workforce reporting where the data is already on hand and you want two complementary analytical views (pivot + imputed fill) without external lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:46:17.049Z","isFirstParty":false,"canonicalSlug":"company-headcount-observations-date-by-category-pivot-missing-value-945e56f7"}