polars.Config.set_tbl_dataframe_shape_below#
- classmethod Config.set_tbl_dataframe_shape_below(active: bool = True) type[polars.config.Config] [source]#
Print the dataframe shape below the dataframe when displaying tables.
Examples
>>> df = pl.DataFrame({"abc": [1.0, 2.5, 5.0], "xyz": [True, False, True]}) >>> pl.Config.set_tbl_dataframe_shape_below(True) # ... # 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 │ └─────┴───────┘ # └─────┴───────┘ shape: (3, 2)