pub fn empty(columns: &[&str]) -> Self {
        DataFrame {
            columns: columns.iter().map(|s| s.to_string()).collect(),
            ncols: columns.len(),
            nrows: 0,
            data: vec![],
        }
    }
/// Creates an empty data frame, with the given columns and zero rows.
Creates an empty data frame, with the given columns and zero rows.
Creates an empty data frame with the given columns and zero rows .
pub fn empty(columns: &[&str]) -> Self {
        DataFrame {
            columns: columns.iter().map(|s| s.to_string()).collect(),
            ncols: columns.len(),
            nrows: 0,
            data: vec![],
        }
    }
pub fn empty ( columns : & [ & str ] ) -> Self { DataFrame { columns : columns . iter ( ) . map ( | s | s . to_string ( ) ) . collect ( ) , ncols : columns . len ( ) , nrows : 0 , data : vec ! [ ] , } }
Creates an empty data frame, with the given columns and zero rows.
Creates an empty data frame with the given columns and zero rows .
columns
&[&str]
columns
&[&str]