diff --git a/src/lib.rs b/src/lib.rs index b815722..f2e3b47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,10 +79,8 @@ fn read_lines(path: impl AsRef) -> io::Result { mmap.len(), ) }; - let array = ChunkedArray::::from(array); - let mut series = Series::from(array); - series.rename("lines"); - let frame = DataFrame::new(vec![series]).unwrap(); + let array = StringChunked::with_chunk("lines", array); + let frame = DataFrame::new(vec![array]).unwrap(); Ok(frame) }