{
  "name": "NumPy trapz API migration by release",
  "description": "Original compilation of the NumPy 1.25 API reference, NumPy 2.0 and 2.4 release notes, and the current trapezoid reference. The rows distinguish documented historical availability, deprecation and removal; version labels identify releases rather than calendar dates.",
  "page": "https://casrai.org/guides/numpy-trapz",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T12:30:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "NumPy release",
      "unit": "",
      "description": ""
    },
    {
      "name": "trapz status",
      "unit": "",
      "description": ""
    },
    {
      "name": "trapezoid status",
      "unit": "",
      "description": ""
    },
    {
      "name": "Implication for analysis code",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "NumPy release": "1.25",
      "trapz status": "Documented public API",
      "trapezoid status": "Introduced later, in NumPy 2.0",
      "Implication for analysis code": "Historical notebooks may call np.trapz(y, x=None, dx=1.0, axis=-1)."
    },
    {
      "NumPy release": "2.0",
      "trapz status": "Deprecated",
      "trapezoid status": "Introduced in this release",
      "Implication for analysis code": "NumPy directs users to np.trapezoid or scipy.integrate functions."
    },
    {
      "NumPy release": "2.4",
      "trapz status": "Removed",
      "trapezoid status": "The NumPy replacement named in the removal notes",
      "Implication for analysis code": "Replace calls to np.trapz with np.trapezoid; preserve observation and coordinate argument order."
    }
  ],
  "sources": [
    {
      "title": "NumPy 1.25: numpy.trapz",
      "url": "https://numpy.org/doc/1.25/reference/generated/numpy.trapz.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "NumPy 2.0 release notes",
      "url": "https://numpy.org/doc/stable/release/2.0.0-notes.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "NumPy 2.4 release notes",
      "url": "https://numpy.org/doc/stable/release/2.4.0-notes.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "NumPy reference: numpy.trapezoid",
      "url": "https://numpy.org/doc/stable/reference/generated/numpy.trapezoid.html",
      "accessed": "2026-11-14"
    }
  ]
}