Код: Выделить всё
import numpy as np
import polars as pl
df = np.zeros(shape=(4, 4))
df = pl.DataFrame(df)
Код: Выделить всё
┌──────────┬──────────┬──────────┬──────────┐
│ column_0 ┆ column_1 ┆ column_2 ┆ column_3 │
│ --- ┆ --- ┆ --- ┆ --- │
│ f64 ┆ f64 ┆ f64 ┆ f64 │
╞══════════╪══════════╪══════════╪══════════╡
│ 0.0 ┆ 0.0 ┆ 0.0 ┆ 0.0 │
│ 1.0 ┆ 1.0 ┆ 1.0 ┆ 1.0 │
│ 0.0 ┆ 0.0 ┆ 0.0 ┆ 0.0 │
│ 0.0 ┆ 0.0 ┆ 0.0 ┆ 0.0 │
└──────────┴──────────┴──────────┴──────────┘
Подробнее здесь: https://stackoverflow.com/questions/759 ... hon-polars