Method: Polars::Config.set_tbl_dataframe_shape_below

Defined in:
lib/polars/config.rb

.set_tbl_dataframe_shape_below(active = true) ⇒ Config

Print the dataframe shape below the dataframe when displaying tables.

Examples:

df = Polars::DataFrame.new({"abc" => [1.0, 2.5, 5.0], "xyz" => [true, false, true]})
Polars::Config.new(tbl_dataframe_shape_below: true) do
  p df
end
# =>
# ┌─────┬───────┐
# │ abc ┆ xyz   │
# │ --- ┆ ---   │
# │ f64 ┆ bool  │
# ╞═════╪═══════╡
# │ 1.0 ┆ true  │
# │ 2.5 ┆ false │
# │ 5.0 ┆ true  │
# └─────┴───────┘
# shape: (3, 2)

Returns:



331
332
333
334
# File 'lib/polars/config.rb', line 331

def self.set_tbl_dataframe_shape_below(active = true)
  ENV["POLARS_FMT_TABLE_DATAFRAME_SHAPE_BELOW"] = active ? "1" : "0"
  self
end