{
  "name": "pandas display options that control how many columns and cells are printed",
  "description": "Original compilation of the pandas display options that interact when a wide DataFrame is printed, with the default stated in the pandas Options and settings documentation and, where the option was exercised, the value observed in a test session on pandas 3.1.1.",
  "page": "https://casrai.org/guides/pandas-display-all-columns",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T08:50:00Z",
  "temporalCoverage": "pandas 3.1.1",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Option",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented default",
      "unit": "",
      "description": ""
    },
    {
      "name": "What it controls",
      "unit": "",
      "description": ""
    },
    {
      "name": "Observed in test",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Option": "display.max_columns",
      "Documented default": "0 in a terminal (auto-detect); None = unlimited",
      "What it controls": "Number of columns printed before the truncated view",
      "Observed in test": "Returned 0 in a script on pandas 3.1.1"
    },
    {
      "Option": "display.width",
      "Documented default": "80",
      "What it controls": "Character width of the output; None lets a terminal auto-detect",
      "Observed in test": "Left at 80, 31 columns wrapped into stacked blocks"
    },
    {
      "Option": "display.expand_frame_repr",
      "Documented default": "True",
      "What it controls": "Wraps a frame wider than display.width across blocks",
      "Observed in test": "Wrapped output ends each line with a backslash"
    },
    {
      "Option": "display.max_colwidth",
      "Documented default": "50",
      "What it controls": "Characters shown per cell before a ... placeholder; None = unlimited",
      "Observed in test": "Returned 50"
    },
    {
      "Option": "display.max_rows",
      "Documented default": "60",
      "What it controls": "Rows printed before truncation",
      "Observed in test": "Returned 60"
    },
    {
      "Option": "display.min_rows",
      "Documented default": "10",
      "What it controls": "Rows shown when a frame exceeds max_rows",
      "Observed in test": "Not tested separately"
    },
    {
      "Option": "display.large_repr",
      "Documented default": "truncate",
      "What it controls": "Whether oversized frames print truncated or as a summary",
      "Observed in test": "Not tested separately"
    }
  ],
  "sources": [
    {
      "title": "pandas documentation: Options and settings",
      "url": "https://pandas.pydata.org/docs/user_guide/options.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "pandas documentation: DataFrame.to_string",
      "url": "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_string.html",
      "accessed": "2026-11-17"
    }
  ]
}