{"uid":"cap_ozNmL5DB22yc9NfaWTc6f","slug":"travel-administration-analytics-weighted-mean-date-by-category-pivot-2fe99729","name":"Travel Administration Analytics: Weighted Mean + Date-by-Category Pivot","description":"Travel administration — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied travel administration records (trip_count, recorded_cost). 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-operations-14-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","trip_count","recorded_cost"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"team_group":{"type":"string","default":"","maxLength":80},"trip_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"recorded_cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","trip_count":10,"recorded_cost":1},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","trip_count":20,"recorded_cost":2},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","trip_count":15,"recorded_cost":3},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","trip_count":30,"recorded_cost":4}],"maxItems":200,"minItems":1},"field":{"enum":["trip_count","recorded_cost"],"type":"string","default":"trip_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_Yrxw1VGVJ_KmHjBGFapnC","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 a date-by-category pivot table for up to 200 travel administration records (trip_count or recorded_cost).","exampleAgentPrompt":"I have 4 travel records — row-1 (group-a, 2026-10-01, 10 trips, $1 cost), row-2 (group-b, 2026-10-02, 20 trips, $2), row-3 (group-a, 2026-10-03, 15 trips, $3), row-4 (group-b, 2026-10-04, 30 trips, $4) — can you compute both the weighted mean and a date-by-category pivot using trip_count as the primary field?","exampleUseCases":[{"title":"Monthly travel cost review by team","prompt":"I have 12 travel records across two departments for October — each with a date, team group, trip count, and recorded cost. Can you run the weighted mean and pivot breakdown using recorded_cost so I can see how spend breaks down by team and date?"},{"title":"Trip volume analysis across groups","prompt":"Here are 50 travel entries tagged by group-a and group-b with daily trip counts and costs. Run me both the weighted mean and the date-by-category pivot report for trip_count so I can see where volume is concentrated."},{"title":"Finance audit of travel data","prompt":"I need to audit Q4 travel records for 8 team groups — I'll supply up to 200 rows with dates, trip counts, and recorded costs. Give me the weighted mean and pivot table for recorded_cost to find any anomalies by group and date."}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean of the selected field (trip_count or recorded_cost) across supplied rows, and (2) a date-by-category pivot table showing aggregated values broken down by date and team_group. Both reports are computed locally on the supplied data with no external lookups.","failureModes":["Exceeding 200 rows returns a validation error","Missing required fields (row_id, team_group, date, trip_count, recorded_cost) causes rejection","Malformed date format (not YYYY-MM-DD) triggers pattern validation failure","Invalid field enum value (not trip_count or recorded_cost) returns schema error","All-null numeric values for the selected field may produce undefined weighted mean"],"whenToPreferThis":"Choose this endpoint when you have structured travel administration records and need both a weighted mean and a date-by-category pivot in a single $0.01 call, without requiring external data sources, live lookups, or predictions. Ideal for batch summarization of up to 200 records across team groups over time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:14.509Z","isFirstParty":false,"canonicalSlug":"travel-administration-analytics-weighted-mean-date-by-category-pivot-2fe99729"}