{
  "name": "pandas precision selectors and their scope",
  "description": "Original compilation of precision-selection behavior from the pandas DataFrame.round, Series.round, Styler.format and DataFrame.to_csv documentation. It distinguishes column selection, numeric transformation and output formatting; no synthetic measurements are included.",
  "page": "https://casrai.org/guides/pandas-round",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-15T02:34:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "API and selector",
      "unit": "",
      "description": ""
    },
    {
      "name": "Precision input",
      "unit": "",
      "description": ""
    },
    {
      "name": "Scope",
      "unit": "",
      "description": ""
    },
    {
      "name": "Return object",
      "unit": "",
      "description": ""
    },
    {
      "name": "Source URL",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "API and selector": "DataFrame.round: integer",
      "Precision input": "One integer",
      "Scope": "All numeric columns use the same decimal places; nonnumeric columns unchanged",
      "Return object": "DataFrame",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.round.html"
    },
    {
      "API and selector": "DataFrame.round: dictionary",
      "Precision input": "Column names as keys, integer decimal places as values",
      "Scope": "Listed columns only; omitted columns unchanged; unknown keys ignored",
      "Return object": "DataFrame",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.round.html"
    },
    {
      "API and selector": "DataFrame.round: Series",
      "Precision input": "Column names in the index, integer decimal places as values",
      "Scope": "Matches precision entries to column labels",
      "Return object": "DataFrame",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.round.html"
    },
    {
      "API and selector": "Series.round",
      "Precision input": "One integer, default 0",
      "Scope": "All values in the Series; negative decimals specify positions left of the point",
      "Return object": "Series",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.Series.round.html"
    },
    {
      "API and selector": "Styler.format",
      "Precision input": "Format string, callable, dictionary or precision integer",
      "Scope": "Displayed cell text; optional subset limits the region",
      "Return object": "Styler",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.format.html"
    },
    {
      "API and selector": "DataFrame.to_csv: float_format",
      "Precision input": "Format string or callable",
      "Scope": "Floating-point representation in CSV output",
      "Return object": "String when path_or_buf is None; otherwise None",
      "Source URL": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html"
    }
  ],
  "sources": [
    {
      "title": "dataframe-round",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.round.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "series-round",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.Series.round.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "styler-format",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.format.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "to-csv",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html",
      "accessed": "2026-11-14"
    }
  ]
}