polars.Config.set_ascii_tables#

classmethod Config.set_ascii_tables(active: bool | None = True) type[Config][source]#

Use ASCII characters to display table outlines.

Set False to revert to the default UTF8_FULL_CONDENSED formatting style.

Examples

>>> df = pl.DataFrame({"abc": [1.0, 2.5, 5.0], "xyz": [True, False, True]})
>>> pl.Config.set_ascii_tables(True)  
# ...
# shape: (3, 2)        shape: (3, 2)
# ┌─────┬───────┐      +-----+-------+
# │ abc ┆ xyz   │      | abc | xyz   |
# │ --- ┆ ---   │      | --- | ---   |
# │ f64 ┆ bool  │      | f64 | bool  |
# ╞═════╪═══════╡      +=============+
# │ 1.0 ┆ true  │  >>  | 1.0 | true  |
# │ 2.5 ┆ false │      | 2.5 | false |
# │ 5.0 ┆ true  │      | 5.0 | true  |
# └─────┴───────┘      +-----+-------+