{"uid":"cap_b7fTTtNnNwZXgSXMOYoEi","slug":"dataset-partition-sizes-equal-width-histogram-weighted-mean-analytics-7ee2bd51","name":"Dataset Partition Sizes — Equal-Width Histogram & Weighted Mean Analytics","description":"Dataset partition sizes — Equal-width histogram + Secondary-measure weighted mean: Equal-width histogram + Secondary-measure weighted mean for supplied dataset partition sizes records (row_count, file_mb). 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-07-172?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","row_count","file_mb"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"file_mb":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","file_mb":1,"row_count":10,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","file_mb":2,"row_count":20,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","file_mb":3,"row_count":15,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","file_mb":4,"row_count":30,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["row_count","file_mb"],"type":"string","default":"row_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_1an8-tm8tppBbXQDSopvH","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 an equal-width histogram and a secondary-measure weighted mean for up to 200 dataset partition size records (row_count and file_mb), returning two analytical reports in one call.","exampleAgentPrompt":"Run an equal-width histogram with 8 bins on the row_count field for my dataset partitions — here are 4 records: row-1 on 2024-01-01 in group-a with 10000 rows and 5.2 MB, row-2 on 2024-01-02 in group-b with 85000 rows and 42.1 MB, row-3 on 2024-01-03 in group-a with 23000 rows and 11.8 MB, row-4 on 2024-01-04 in group-b with 150000 rows and 77.3 MB — and also give me the weighted mean of file_mb.","exampleUseCases":[{"title":"Partition skew audit for data pipeline","prompt":"I need to check if my pipeline's dataset partitions are evenly sized — can you run an equal-width histogram with 10 bins on row_count for these 12 partition records and also give me the file_mb weighted mean? Records: part-1 2024-03-01 group-etl 5000 rows 2.1 MB, part-2 2024-03-01 group-etl 48000 rows 19.4 MB, part-3 2024-03-02 group-raw 120000 rows 58.7 MB, part-4 2024-03-02 group-raw 3200 rows 1.6 MB, part-5 2024-03-03 group-etl 67000 rows 31.2 MB, part-6 2024-03-03 group-raw 9800 rows 4.9 MB, part-7 2024-03-04 group-etl 200000 rows 98.1 MB, part-8 2024-03-04 group-raw 15000 rows 7.2 MB, part-9 2024-03-05 group-etl 42000 rows 20.5 MB, part-10 2024-03-05 group-raw 88000 rows 43.6 MB, part-11 2024-03-06 group-etl 31000 rows 15.1 MB, part-12 2024-03-06 group-raw 5500 rows 2.8 MB."},{"title":"Storage distribution analysis by dataset group","prompt":"Can you histogram the file_mb field with 5 bins for my dataset partitions across two groups, and also compute the row_count weighted mean? Here are the records: ds-01 2024-06-01 group-bronze 1100 rows 0.8 MB, ds-02 2024-06-01 group-silver 44000 rows 21.3 MB, ds-03 2024-06-02 group-bronze 8900 rows 4.4 MB, ds-04 2024-06-02 group-silver 230000 rows 115.0 MB, ds-05 2024-06-03 group-bronze 2200 rows 1.1 MB, ds-06 2024-06-03 group-silver 75000 rows 37.8 MB."},{"title":"Monthly partition sizing report","prompt":"Give me a histogram with 6 bins on row_count and also the file_mb weighted mean for these monthly snapshot partitions: snap-jan 2024-01-31 group-monthly 50000 rows 25.0 MB, snap-feb 2024-02-29 group-monthly 47000 rows 23.5 MB, snap-mar 2024-03-31 group-monthly 63000 rows 31.5 MB, snap-apr 2024-04-30 group-monthly 39000 rows 19.5 MB, snap-may 2024-05-31 group-monthly 91000 rows 45.5 MB, snap-jun 2024-06-30 group-monthly 28000 rows 14.0 MB."}],"resultDescription":"Returns two analytical reports: (1) an equal-width histogram showing bin boundaries and the count of partition records falling into each bin for the chosen primary field (row_count or file_mb), and (2) a secondary-measure weighted mean value. Both reports are computed locally from the supplied data with no external lookups.","failureModes":["Exceeds 200-row limit — request rejected","Invalid date format (non-YYYY-MM-DD) — validation error","bins value outside 1–30 range — rejected","Missing required fields (row_id, dataset_group, date, row_count, file_mb) — schema error","Null values in the primary measure field may affect histogram bin computation","field enum not one of 'row_count' or 'file_mb' — rejected"],"whenToPreferThis":"Choose this endpoint when you need both a distribution histogram and a weighted mean for dataset partition sizing metrics (row count or file size) in a single API call for up to 200 records. It is ideal for data engineering teams auditing partition skew, storage spread, or pipeline output consistency without needing an external analytics platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:46:36.932Z","isFirstParty":false,"canonicalSlug":"dataset-partition-sizes-equal-width-histogram-weighted-mean-analytics-7ee2bd51"}