import polars as pl
from great_docs import tbl_preview
df = pl.DataFrame({
"id": range(1, 26),
"value": [x * 1.1 for x in range(1, 26)],
"category": ["A", "B", "C", "D", "E"] * 5,
"flag": [True, False] * 12 + [True],
})
tbl_preview(df)PolarsRows25Columns4 | ||||
id i64 |
value f64 |
category str |
flag bool |
|
|---|---|---|---|---|
| 0 | 1 | 1.1 | A | True |
| 1 | 2 | 2.2 | B | False |
| 2 | 3 | 3.3 | C | True |
| 3 | 4 | 4.4 | D | False |
| 4 | 5 | 5.5 | E | True |
| 20 | 21 | 23.1 | A | True |
| 21 | 22 | 24.2 | B | False |
| 22 | 23 | 25.3 | C | True |
| 23 | 24 | 26.4 | D | False |
| 24 | 25 | 27.5 | E | True |