{
  "id": 23100513,
  "title": "Menu engineering in Python: compute the two cutoffs instead of guessing them",
  "url": "https://urgent.news/2026/12/02/menu-engineering-in-python-compute-the-two-cutoffs-instead-of",
  "topic": "culture",
  "section": "Culture",
  "published": "2026-12-02T10:01:12.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/tidycents/menu-engineering-in-python-compute-the-two-cutoffs-instead-of-guessing-them-514j"
  },
  "original_language": null,
  "account": "Menu engineering is a method that categorizes dishes into four types based on popularity and profitability. The process involves computing two cutoff values - popularity line and margin line - instead of guessing them. The popularity line is 70% of an equal share of the menu mix, while the margin line is the average contribution margin per portion sold, weighted by units sold, not a plain average. A Python code snippet is provided to implement the menu matrix, which includes the calculations for these two lines. The output shows that the top-selling dish, Tomato Soup, falls into the plowhorse category, indicating it requires margin improvement rather than increased promotion.",
  "summary": "Menu engineering puts every dish in one of four boxes: star (popular, profitable), plowhorse (popular, thin margin), puzzle (profitable, rarely ordered) and dog . Most templates hand you the boxes and leave the two cutoff lines blank. The lines are the whole method: Popularity line = 70% of an equal share of the mix. Five dishes, equal share 20%, line at 14%. Margin line = average contribution…",
  "summary_source": "publisher",
  "key_points": [
    "Menu engineering categorizes dishes into four types based on popularity and profitability.",
    "Two cutoff values, popularity line and margin line, are computed instead of guessing them.",
    "Python code snippet provided to implement menu matrix and calculate these two lines."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}