Skip to main content

split

Function split 

Source
pub fn split<D: Dimension>(
    a: &StringArray<D>,
    sep: &str,
) -> FerrayResult<StringArray2>
Expand description

Split each string element by the given separator.

Returns a 2-D StringArray of shape (n_inputs, max_parts) where row i contains the parts produced by splitting element i. Rows shorter than max_parts are padded with empty strings (#277). Use split_ragged when you need the unpadded Vec<Vec<String>> form.

ยงErrors

Returns an error if the internal array construction fails.