polars::prelude

Function columns_to_projection

Source
pub fn columns_to_projection<T>(
    columns: &[T],
    schema: &Schema<Field>,
) -> Result<Vec<usize>, PolarsError>
where T: AsRef<str>,
Available on crate feature polars-io and (crate features ipc or ipc_streaming or avro or parquet) only.