Method: Polars::Config.set_tbl_hide_column_data_types

Defined in:
lib/polars/config.rb

.set_tbl_hide_column_data_types(active = true) ⇒ Config

Hide table column data types (i64, f64, str etc.).

Examples:

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

Returns:



404
405
406
407
# File 'lib/polars/config.rb', line 404

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