polars-core 0.46.0

Core of the Polars DataFrame library
Documentation
1
2
3
4
5
6
7
8
9
10
use polars_utils::pl_str::PlSmallStr;

use crate::frame::DataFrame;
use crate::prelude::StructChunked;

impl DataFrame {
    pub fn into_struct(self, name: PlSmallStr) -> StructChunked {
        StructChunked::from_columns(name, self.height(), &self.columns).expect("same invariants")
    }
}