{
  "name": "pandas label-returning and position-returning maximum methods: documented behaviour",
  "description": "Compares documented behaviour of pandas idxmax, idxmin and argmax methods (return type, NA handling, tie rule, axis support), compiled from the official pandas API reference pages.",
  "page": "https://casrai.org/guides/idxmax-pandas",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-17T05:37:01Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Method",
      "unit": "",
      "description": ""
    },
    {
      "name": "Returns",
      "unit": "",
      "description": ""
    },
    {
      "name": "Tie rule",
      "unit": "",
      "description": ""
    },
    {
      "name": "NA handling",
      "unit": "",
      "description": ""
    },
    {
      "name": "Axis argument",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Method": "DataFrame.idxmax",
      "Returns": "Series of index labels",
      "Tie rule": "First occurrence",
      "NA handling": "Excluded by default; ValueError if skipna=False and NA present or all NA",
      "Axis argument": "axis=0 or 1"
    },
    {
      "Method": "Series.idxmax",
      "Returns": "Single index label",
      "Tie rule": "First row label with the value",
      "NA handling": "Excluded by default; ValueError if empty",
      "Axis argument": "Unused, compatibility only"
    },
    {
      "Method": "DataFrame.idxmin",
      "Returns": "Series of index labels",
      "Tie rule": "First occurrence of minimum",
      "NA handling": "Excluded by default; ValueError if skipna=False and NA present or all NA",
      "Axis argument": "axis=0 or 1"
    },
    {
      "Method": "Series.argmax",
      "Returns": "Integer position",
      "Tie rule": "First occurrence",
      "NA handling": "Excluded by default; ValueError if skipna=False and NA present or all NA",
      "Axis argument": "None (unused)"
    }
  ],
  "sources": [
    {
      "title": "pandas.DataFrame.idxmax",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.idxmax.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "pandas.Series.idxmax",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.Series.idxmax.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "pandas.DataFrame.idxmin",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.idxmin.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "pandas.Series.argmax",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.Series.argmax.html",
      "accessed": "2026-11-17"
    }
  ]
}