Seven pulse rows inside the official market table
One dataset on the platform holds Kenya's bean prices: the official market price table. It records wholesale and retail prices per market and per day for about 195 commodities across all 47 counties, and history goes back to May 2021. The pulse slice inside that table is seven commodities: dry beans, green grams, cowpeas, lentils, dolichos (lablab), pigeon peas and dry peas. Every row has a market, a county, a date, a price type (retail or wholesale) and a price in shillings per kilogram. That is all the record holds. There is no variety field, no grade, and no note on whether the lot was new season or carried over from the last one.
Be careful with coverage, because the easy sentence is the wrong one. All 47 counties are covered. That does not mean every county reports every pulse on every day. A market reports when it reports. A county that files three dry bean prices in a month and a county that files thirty both count as one county, and the median for the first rests on three numbers. So read the table as counties covered, and read any county median next to the number of reports behind it. Field definitions and the full commodity list are on the commodity price dataset page.
The whole table is observational. A figure is a price someone recorded in a market on a date. There is no forecast column, and none is coming. A price forecast was built, tested against simply carrying today's figure forward, lost, and was not shipped. That restriction helps an analyst at a lender pricing a loan against a bean harvest, or an insurer checking basis risk. What you pull is a measurement with a date on it, not an opinion about next month. The table cannot tell you why a price moved. Most of what follows is about keeping that limit in view while still getting real work out of the rows.
Per kilogram, whatever the market quoted
Pulses in Kenya trade in bags, get quoted in bags, and most public sources report them in bags. The platform stores every weight price per kilogram. That is a harmonisation decision, and it should be visible rather than buried. The National Cereals and Produce Board's weekly market price report shows why. Its national weekly average table quotes beans per 90 kg bag: yellow bean at 14,004 shillings and red haricot at 12,081. Neither is a per-kilogram price. Divide yellow bean by 90 and you get 155.6 shillings per kilogram. Red haricot by 90 gives 134.2. A platform row is that kind of division, and a reader who knows the source unit can redo it.
The FAO's special report on Kenya from May 1997 quotes beans at 6,200 shillings per bag in April 1997. In the same breath it quotes 1,323 US dollars per ton. Two units, two currencies, one price. Any series stitched across decades has to pick a base. The platform picks the per-kilogram shilling row: the shilling keeps exchange-rate movement out of the price, and the kilogram puts a bag in one market and a tin in another on the same scale. One caution survives the conversion. A 90 kg bag that was not filled to 90 carries an error no division removes, and the table cannot see it. When you compare platform rows against a bag-quoted source, convert the source, never the platform, and write the division down where the reader can check it.
Counted: 11 October to 8 November 2026
The latest window the platform holds for this slice is the worked example: 11 October 2026 to 8 November 2026. All seven pulse commodities carried at least 15 retail reports. That is the floor below which a median is not worth printing. Across the group, median retail prices ran from 130 shillings per kilogram for pigeon peas to 250 for lentils. Past that headline, report counts fall away fast. Read the counts first, before any price.
Add up the retail reports: 608 plus 135 plus 78 plus 73 plus 64 plus 50 plus 31 is 1,039. Dry beans alone accounts for 608 of those. 608 divided by 1,039 is 58.5 percent. More than half of everything the pulse slice knows about this window is about one commodity. Wholesale is thinner again: 484 plus 106 plus 68 plus 59 plus 50 plus 42 plus 25 gives 834 reports. Dry peas rest on 25.
That skew sets the terms. A dry bean county median from 14 counties and 43 markets will take weight. A dry pea median from 8 markets in 5 counties will not. A county figure inside it may be one market's one price. Retail count, market count and county count travel together. The honest way to quote a pulse median is with all three attached. Same arithmetic applies to the 30-day change column, which the platform computes against the 30 days before the window. A small series changes its market mix easily, and a change in mix reads as a change in price.
Lentils at 480 in Kakamega
One number a reader won't expect: Kakamega's lentil county median is 480 shillings per kilogram, against 160 in Nairobi, the low end of the lentil range. 480 divided by 160 is three times the Nairobi figure. Same window, same commodity, from a series of 73 retail reports across 17 markets in 7 counties. Before anyone colours a map with that, ask how many of those 17 markets are in Kakamega and how many reports each filed. The rows can answer that. The median on its own can't.
In this window Kakamega has the highest county median for four of the seven pulses: lentils at 480, dolichos at 295, dry peas at 290 and cowpeas at 196. Nairobi sits at the bottom for three: lentils at 160, dolichos at 105 and pigeon peas at 110. Four commodities lining up is more than a single stray price. But the pattern is in retail, and retail in a western county is not the same transaction as retail in the capital. The platform records the price. It does not record the quantity bought, the packaging, or whether the lentils were imported stock sold in small measures. None of those explanations is in the data, so none of them should be stated as fact. Treat them as things to check, in that order, before the figure is used.
Now apply the same test at the other end. Meru is the floor for dry beans at 120 and for green grams at 122. Embu is the floor for cowpeas at 100 and the ceiling for pigeon peas at 150. Uasin Gishu is the ceiling for green grams at 200 and the floor for dry peas at 175. Each of those is a county median in a window, resting on whatever markets in that county reported. A county that reported from one market has a median that is really a price. Nothing in the summary flags which case you are looking at. Pull the market-level rows and count.
Then there is dolichos: plus 21 percent against the 30 days before, the largest move in the group, on 64 reports from 16 markets in 8 counties. Dry peas moved the other way, minus 5 percent on 31 reports. Green grams and lentils did not move at all. On a 64-report series, a 21 percent change is consistent with a real shift and equally consistent with two or three high-priced markets entering the window. Splitting the change by market settles it. The summary figure alone does not. That is the general lesson of the window, and it applies to every pulse here: a median, a range and a change are three summaries of the same thin set of rows, and the rows decide whether any of them means anything.
Dry beans: 608 reports and a 27 shilling margin
Dry beans are the series an analyst will actually use. In the window the retail median was 160 shillings per kilogram from 608 reports, and the wholesale median 133 from 484 reports. The difference is 160 minus 133, which is 27 shillings, and 27 divided by 133 is 20.3 percent. That is a group-level margin, retail median over wholesale median. It is a different number from the margin in any one market, because the two medians draw on different sets of markets. Where a market reported both price types on the same dates, the rows allow a market-level margin. That is the version worth keeping.
Margin is the analytic the monthly market monitors already chase. A June 2025 monthly price report on Kenyan markets presents wholesale and retail prices for beans alongside maize, potatoes, rice and wheat in major markets, with price margins for certain commodities. Useful benchmark, monthly, major markets only. The official market table is a finer grid: per market and per day across counties. The earlier piece on commodity data from East Africa set out how retail and wholesale sit in that table as separate price types under one commodity rather than as two datasets. Filter the price type first, every time.
County spread for dry beans runs from 120 in Meru to 200 in Bomet. That is 200 over 120, a ratio of 1.67. Retail dry beans were up 7 percent against the 30 days before. Both figures are safe to quote with their coverage attached: 14 counties, 43 markets, retail, 11 October to 8 November 2026. Neither is safe as a national bean price. 14 counties is not 47, and a window is not a season.
Variety is the column the table does not have
Beans are not one price in the Kenyan trade. The same national weekly average that quotes yellow bean at 14,004 shillings per 90 kg lists mwitemania at 13,602, rose coco at 13,236 and red haricot at 12,081. Cheapest to dearest is 14,004 minus 12,081, which is 1,923 shillings per bag, and 1,923 divided by 12,081 is 15.9 percent. Within one week, within one national average, variety alone opens a spread of that size.
The dry beans row has no variety field. A Meru market selling a cheaper type and a Bomet market selling a dearer one land in the same series. That Meru to Bomet spread of 120 to 200 could carry some variety mix inside it. Nothing in the table says how much. This is the single largest gap in the pulse slice, and it is known rather than hidden: the row describes beans, while the trade prices types. Put that in the caption. Resist explaining county spread as transport or supply until variety has been ruled out, which this dataset cannot do. The United States Department of Agriculture's report on Kenya's pulses market places Kenya among the largest pulse producers in Africa and a major consumer in Sub-Saharan Africa; in that setting the omission matters more than where beans are marginal.
County spread, read against a study that ranks county last
County is what everyone wants from this table. Yet evidence suggests it is not the first thing that moves a Kenyan food price. A machine learning study of Kenyan food prices published in PMC used an international humanitarian food price series from January 2006 to September 2024, with Central Bank of Kenya exchange rates and inflation alongside. Its SHapley Additive exPlanations analysis ranked unit quantity, price type, commodity and currency as the influential features. Geographical factors such as county had a lesser impact, it found. The best model stacked XGBoost and gradient boosting, with linear regression as meta-model. It reported an R-squared of 0.9940 and a mean absolute error of 0.1050, validated with 5-fold cross-validation and Diebold-Mariano tests.
You can read this two ways, and only one helps here. The unhelpful reading is that county does not matter. The useful reading is that a dataset not cleaned for unit and price type will show spreads that are unit and price type wearing a county's name. Take a green gram series running from 122 in Meru to 200 in Uasin Gishu. It is a county spread only after every row in it is confirmed as retail and per kilogram. The platform stores unit and price type on every row. That is why the county question is answerable at all, and why the filter comes before the map.
Prediction was what the study did. The platform does not predict, so the fitted model is not something to port across. Its feature ranking is the part that transfers. Note what was being predicted too: a series spanning many commodities, where the commodity feature does heavy lifting that is already fixed when someone pulls one pulse at a time. Within a single commodity, county may carry more of the remaining variation than the overall ranking suggests. Published evidence places county below unit and price type, and a per-commodity ranking for pulses in Kenya does not exist in the sources used here. Someone with the platform's rows could build it.
Where the pulse slice goes quiet
This slice answers questions about level and spread on a dated window cleanly. That means retail median by county, wholesale median where markets report it, the gap between the two, and the change against the previous 30 days, in shillings per kilogram, back to May 2021. It cannot answer questions about cause. In April 1997 the FAO report recorded beans at 6,200 shillings per bag, up 206 percent on the year. It attributed the rise to very limited imports after poor short rains in neighbouring countries, with seed shortages after the 1996/97 short rains cutting the area planted to beans. A price table holds the price, not the reasons behind it. A jump in a pulse row may be a planting failure recorded as shillings. The row will not say.
Long comparisons need a deflator the table does not carry. That same report puts Kenyan inflation at 9 percent in 1996 with 15 percent projected for 1997. Platform rows are nominal. Read a five-year bean series without a price index and it is a series about the shilling as much as about beans. Regional comparison is a second quiet spot. The June 2026 food security monitor from AGRA compares maize at USD 432.6 per metric ton in Kenya, 426.2 in Uganda and 420.7 in Rwanda. That shows the form such a table takes. No equivalent pulse table appears in these sources. The platform's monthly East Africa price series is where a cross-country pulse comparison would be built, on the same commodity and the same unit, or not at all.
One commodity that looks like a bean is deliberately absent. A true cost accounting study of Kenya's green bean value chain estimated hidden costs of 124.03 million USD against a market value of 53.92 million USD. Green beans, though, are a fresh export vegetable and that costing is not a pulse price. Keep the two apart. The price table has no environmental or health columns of any kind. The only field-level weather and soil rows on the platform come from NuaSense's own sensor network. They sit in separate datasets with their own coverage.