pola-rs/polars · error
could not parse table width argument
Error message
could not parse table width argument
What it means
Error "could not parse table width argument" thrown in pola-rs/polars.
Source
Thrown at crates/polars-core/src/fmt.rs:742
&ellipsis,
padding,
);
table.add_row(row_strings);
} else {
break;
}
}
}
} else if height > 0 {
let dots: Vec<String> = vec![ellipsis; self.width()];
table.add_row(dots);
}
let tbl_fallback_width = 100;
let tbl_width = std::env::var("POLARS_TABLE_WIDTH")
.map(|s| {
let n = s
.parse::<i64>()
.expect("could not parse table width argument");
let w = if n < 0 {
u16::MAX
} else {
u16::try_from(n).expect("table width argument does not fit in u16")
};
Some(w)
})
.unwrap_or(None);
// column width constraints
let col_width_exact =
|w: usize| ColumnConstraint::Absolute(comfy_table::Width::Fixed(w as u16));
let col_width_bounds = |l: usize, u: usize| ColumnConstraint::Boundaries {
lower: Width::Fixed(l as u16),
upper: Width::Fixed(u as u16),
};
let min_col_width = std::cmp::max(5, 3 + padding);
for (idx, elem_len) in max_elem_lengths.iter().enumerate() {View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at crates/polars-core/src/fmt.rs:742 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16).
Data as JSON: /api/errors/1ba99304adf63a7a.
Report an issue: GitHub.