1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::prelude::*;
impl From<StructChunked> for DataFrame {
fn from(ca: StructChunked) -> Self {
DataFrame::new_no_checks(ca.fields)
}
}
impl DataFrame {
pub fn into_struct(self, name: &str) -> StructChunked {
StructChunked::new(name, &self.columns).unwrap()
}
}