'Maximum number of columns shown when formatting DataFrames in python-polars?

how set maximum number of columns shown when formatting DataFrames ?

i found that in rust-polars i need to modify "POLARS_FMT_MAX_COLS" env variable. how can i do this in python ?



Solution 1:[1]

You can use polars.Config.set_tbl_cols

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cbilot