{"uid":"cap_8ABtaNLn1szy13hkiyy_i","slug":"temperature-observations-weighted-mean-date-by-category-pivot-b095fb7f","name":"Temperature Observations — Weighted Mean & Date-by-Category Pivot","description":"Temperature observations — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied temperature observations records (temperature_c, observation_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-weather-01-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","station_group","date","temperature_c","observation_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"station_group":{"type":"string","default":"","maxLength":80},"temperature_c":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"observation_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","station_group":"group-a","temperature_c":10,"observation_count":1},{"date":"2026-10-02","row_id":"row-2","station_group":"group-b","temperature_c":20,"observation_count":2},{"date":"2026-10-03","row_id":"row-3","station_group":"group-a","temperature_c":15,"observation_count":3},{"date":"2026-10-04","row_id":"row-4","station_group":"group-b","temperature_c":30,"observation_count":4}],"maxItems":200,"minItems":1},"field":{"enum":["temperature_c","observation_count"],"type":"string","default":"temperature_c"}}},"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_FjjSPFg6fSVWwghp_UsyT","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 supplied temperature observation records in a single paid call.","exampleAgentPrompt":"I have temperature observation records for two station groups — group-a and group-b — with dates from 2026-10-01 to 2026-10-04, temperatures in Celsius, and observation counts per row. Can you run both the observation-count weighted mean for temperature_c and the date-by-category pivot on these up to 200 rows?","exampleUseCases":[{"title":"Monthly station temperature summary","prompt":"I have daily temperature readings from three weather station groups across October — each row has a date, station group, temperature in Celsius, and how many observations were taken that day. Can you compute the observation-count weighted mean temperature and give me a date-by-station-group pivot for the whole month?"},{"title":"Climate data QA pivot report","prompt":"I need to cross-check my temperature dataset — it has about 150 rows with station_group, date, temperature_c, and observation_count. Please run both the weighted mean report and the date-by-category pivot so I can spot any anomalies across groups."},{"title":"Multi-station aggregation for dashboard","prompt":"We're building a weather dashboard and I want to summarize raw temperature observations — about 80 rows with columns row_id, station_group, date, temperature_c, and observation_count. Can you give me the observation-count weighted average temperature and a pivot table of temperatures by date and station group?"}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean of temperature_c (or observation_count) using the other numeric column as the weight, and (2) a pivot table with dates as rows and station_group categories as columns showing aggregated temperature values — all computed locally from the supplied data, up to 200 rows.","failureModes":["Missing required fields (row_id, date, station_group, temperature_c, observation_count) cause validation errors","Date strings not matching YYYY-MM-DD pattern are rejected","Input array exceeding 200 rows is rejected with a size-limit error","Null values in temperature_c or observation_count may affect weighted mean accuracy","Invalid field enum value (not 'temperature_c' or 'observation_count') causes a schema error","Payment failure (insufficient USDC balance) prevents processing"],"whenToPreferThis":"Choose this endpoint when you have pre-collected temperature observation records (up to 200 rows) and need both a weighted mean aggregation and a date-by-category pivot in a single low-cost call. It is ideal for offline/batch analytical tasks on weather station data where no live data lookup, prediction, or external data enrichment is needed — just local computation on your supplied rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T12:41:32.007Z","isFirstParty":false,"canonicalSlug":"temperature-observations-weighted-mean-date-by-category-pivot-b095fb7f"}