Spec-Zone.ru › Polars

polars.Config.set_tbl_hide_dataframe_shape

classmethod Config.set_tbl_hide_dataframe_shape(
    active: bool | None = True,
) → type[Config]

Скрывать информацию о размере DataFrame при отображении таблиц.

Примеры

>>> df = pl.DataFrame({"abc": [1.0, 2.5, 5.0], "xyz": [True, False, True]})
>>> pl.Config.set_tbl_hide_dataframe_shape(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  │      └─────┴───────┘
# └─────┴───────┘

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/api/polars.Config.set_tbl_hide_dataframe_shape.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API