Shrink numeric values to the minimal required datatype
Description
Shrink numeric values to the minimal required datatype
Usage
<series>$_shrink_dtype()
Value
A polars Series
Examples
#> shape: (6, 1)
#> ┌─────┐
#> │ │
#> │ --- │
#> │ i32 │
#> ╞═════╡
#> │ 1 │
#> │ 2 │
#> │ 3 │
#> │ 4 │
#> │ 5 │
#> │ 6 │
#> └─────┘
#> shape: (6, 1)
#> ┌─────┐
#> │ │
#> │ --- │
#> │ i8 │
#> ╞═════╡
#> │ 1 │
#> │ 2 │
#> │ 3 │
#> │ 4 │
#> │ 5 │
#> │ 6 │
#> └─────┘