{
  "name": "Mean function signatures and missing-value defaults: pandas, NumPy, Polars and R",
  "description": "Compares the documented signature, default scope and missing-value control of the mean function in pandas, NumPy, Polars and base R, compiled from each project's official reference documentation.",
  "page": "https://casrai.org/guides/pandas-mean",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:07:28Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Tool",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented call",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default scope",
      "unit": "",
      "description": ""
    },
    {
      "name": "Missing-value control",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Tool": "pandas 3.1.1",
      "Documented call": "DataFrame.mean(*, axis=0, skipna=True, numeric_only=False, **kwargs)",
      "Default scope": "axis=0: one mean per column",
      "Missing-value control": "skipna=True (NA/null excluded)"
    },
    {
      "Tool": "NumPy 2.5",
      "Documented call": "numpy.mean(a, axis=None, dtype=None, out=None, keepdims=, *, where=)",
      "Default scope": "axis=None: mean of the flattened array",
      "Missing-value control": "No NaN argument in the signature (nanmean is listed under See also)"
    },
    {
      "Tool": "Polars",
      "Documented call": "DataFrame.mean()",
      "Default scope": "Each column aggregated to its mean, one-row DataFrame",
      "Missing-value control": "No argument in the signature"
    },
    {
      "Tool": "R base",
      "Documented call": "mean(x, trim = 0, na.rm = FALSE, ...)",
      "Default scope": "A single vector x",
      "Missing-value control": "na.rm = FALSE (set TRUE to remove NA)"
    }
  ],
  "sources": [
    {
      "title": "pandas.DataFrame.mean",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.mean.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "numpy.mean",
      "url": "https://numpy.org/doc/stable/reference/generated/numpy.mean.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "polars.DataFrame.mean",
      "url": "https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.mean.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "R base: mean",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/base/html/mean.html",
      "accessed": "2026-11-13"
    }
  ]
}