polars-lazy 0.26.1

Lazy query engine for the Polars DataFrame library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use polars_core::prelude::*;

use crate::prelude::*;

impl LazyFrame {
    pub fn scan_from_python_function(schema: Schema, scan_fn: Vec<u8>, pyarrow: bool) -> Self {
        LogicalPlan::PythonScan {
            options: PythonOptions {
                scan_fn,
                schema: Arc::new(schema),
                pyarrow,
                ..Default::default()
            },
        }
        .into()
    }
}