{"uid":"cap_wq-yZdrt4GNKhQeRGy_OS","slug":"sampling-observations-equal-width-histogram-date-by-category-pivot-c0b5dd28","name":"Sampling Observations — Equal-Width Histogram + Date by Category Pivot","description":"Sampling observations — Equal-width histogram + Date by category pivot: Equal-width histogram + Date by category pivot for supplied sampling observations records (sample_value, sample_weight). 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-analytics-15-173?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","default":5,"maximum":30,"minimum":1},"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","sample_value","sample_weight"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"sample_value":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"sample_weight":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","sample_value":10,"dataset_group":"group-a","sample_weight":1},{"date":"2026-10-02","row_id":"row-2","sample_value":20,"dataset_group":"group-b","sample_weight":2},{"date":"2026-10-03","row_id":"row-3","sample_value":15,"dataset_group":"group-a","sample_weight":3},{"date":"2026-10-04","row_id":"row-4","sample_value":30,"dataset_group":"group-b","sample_weight":4}],"maxItems":200,"minItems":1},"field":{"enum":["sample_value","sample_weight"],"type":"string","default":"sample_value"}}},"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_UwRdGM7-LOgaUSDBXrSqS","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":"Generates two analytical reports (equal-width histogram and date-by-category pivot) from up to 200 supplied sampling observation records with sample_value and sample_weight fields.","exampleAgentPrompt":"Analyze my sampling observations data — I have 150 rows with sample_value and sample_weight fields grouped into 'control' and 'treatment' categories dated over the past month. Run both the equal-width histogram (10 bins) on sample_value and the date-by-category pivot so I can see the distribution and how the two groups differ over time.","exampleUseCases":[{"title":"Environmental monitoring data review","prompt":"I have 120 air quality sampling readings with measurement values and collection weights across two sensor groups, dated from January to March 2025. Can you run a histogram with 8 bins on the sample_value field and also pivot the data by date and sensor group so I can see patterns?"},{"title":"Clinical trial sample distribution check","prompt":"I have 200 lab sample records from a clinical trial with sample_value and sample_weight columns, split between 'placebo' and 'active' groups and dated daily over Q1. Please generate the equal-width histogram with 5 bins and the date-by-category pivot on sample_value for both groups."},{"title":"Survey response weight analysis","prompt":"I've got 80 survey response rows, each with a weighted score as sample_weight and a raw response value as sample_value, grouped by 'region-east' and 'region-west' and dated weekly through 2025. Can you run both the histogram with 6 bins and the category date pivot on sample_weight?"}],"resultDescription":"Returns two analytical reports computed locally from the supplied rows: (1) an equal-width histogram showing frequency distribution of the selected field (sample_value or sample_weight) divided into the specified number of bins, and (2) a date-by-category pivot table cross-tabulating the selected field by date and dataset_group. Results cover up to 200 input rows with no external lookups or predictions.","failureModes":["More than 200 rows submitted — request rejected, trim input to 200 rows","Invalid date format (not YYYY-MM-DD) causes row-level validation failure","bins value outside 1–30 range causes rejection","sample_value or sample_weight exceeds ±1 trillion causes schema error","Empty rows array causes validation failure","Missing required fields (row_id, dataset_group, date) causes rejection"],"whenToPreferThis":"Choose this endpoint when you need two simultaneous local analytics reports — a histogram and a date-by-category pivot — on sampling observation data (up to 200 rows) without any external data fetch, live lookup, or prediction. It is well-suited for exploratory data analysis, quality control, and scientific sampling workflows where you supply your own rows and want distribution and temporal-category breakdowns in a single low-cost call ($0.01 USDC).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:59.521Z","isFirstParty":false,"canonicalSlug":"sampling-observations-equal-width-histogram-date-by-category-pivot-c0b5dd28"}