{"uid":"cap_bfdp4qxLI3ctKZRWdpRaW","slug":"transport-ridership-analytics-adjacent-row-changes-weighted-mean-1d797510","name":"Transport Ridership Analytics: Adjacent Row Changes + Weighted Mean","description":"Transport ridership — Adjacent row changes + Secondary-measure weighted mean: Adjacent row changes + Secondary-measure weighted mean for supplied transport ridership records (passenger_count, service_count). 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-economics-05-159?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","passenger_count","service_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"service_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"passenger_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","service_count":1,"passenger_count":10},{"date":"2026-10-02","region":"group-b","row_id":"row-2","service_count":2,"passenger_count":20},{"date":"2026-10-03","region":"group-a","row_id":"row-3","service_count":3,"passenger_count":15},{"date":"2026-10-04","region":"group-b","row_id":"row-4","service_count":4,"passenger_count":30}],"maxItems":200,"minItems":1},"field":{"enum":["passenger_count","service_count"],"type":"string","default":"passenger_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_U1lQ61MKDAM7RmvQ5w5-L","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 adjacent row-over-row changes and a secondary-measure weighted mean across up to 200 transport ridership records (passenger_count, service_count), returning two analytical reports.","exampleAgentPrompt":"Analyze these 4 rows of transit ridership data — row-1 on 2026-10-01 region group-a passenger_count 10 service_count 1, row-2 on 2026-10-02 region group-b passenger_count 20 service_count 2, row-3 on 2026-10-03 region group-a passenger_count 15 service_count 3, row-4 on 2026-10-04 region group-b passenger_count 30 service_count 4 — give me the adjacent row changes and service-count weighted mean for passenger_count.","exampleUseCases":[{"title":"Daily bus ridership trend analysis","prompt":"I have daily passenger and service counts for two bus regions over the past week — can you compute the day-over-day ridership changes and the service-weighted average passenger count across all rows? I'll send the data as rows with row_id, date, region, passenger_count, and service_count."},{"title":"Rail network capacity monitoring","prompt":"Here are 50 rows of rail ridership records by region and date with passenger_count and service_count — run the adjacent row changes and secondary-measure weighted mean analysis on passenger_count so I can see where ridership is spiking relative to service capacity."},{"title":"Multi-region transit performance report","prompt":"I need to compare ridership fluctuations across three transit regions for the last month. Can you take these 120 ridership rows and compute adjacent row deltas plus the weighted mean using service_count as the weight, focusing on the service_count field?"}],"resultDescription":"Returns two analytical reports: (1) adjacent row-over-row changes for each consecutive pair of supplied ridership records on the chosen field, and (2) a secondary-measure weighted mean of the chosen field (passenger_count or service_count) weighted by the other measure — all computed locally on the supplied data with no external lookups.","failureModes":["Missing required fields (row_id, region, date, passenger_count, service_count) causes validation error","Supplying more than 200 rows exceeds the row limit and returns an error","Invalid date format (not YYYY-MM-DD) fails pattern validation","Invalid field enum value (not passenger_count or service_count) causes rejection","Empty rows array returns an error due to minItems:1 constraint","Non-numeric values in passenger_count or service_count cause type errors"],"whenToPreferThis":"Choose this endpoint when you have tabular transport ridership data (up to 200 rows) and need both adjacent row-level change detection and a weighted mean in a single call for $0.01 USDC. It is best for offline/supplied-data analysis where no live data lookup, external forecasting, or prediction is needed. Prefer this over general analytics services when the dataset is already structured with row_id, region, date, passenger_count, and service_count fields and you want two specific statistical outputs bundled together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:42:36.954Z","isFirstParty":false,"canonicalSlug":"transport-ridership-analytics-adjacent-row-changes-weighted-mean-1d797510"}