1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::prelude::*;
use polars_core::prelude::*;
impl LazyFrame {
pub fn scan_from_python_function(schema: Schema, scan_fn: Vec<u8>) -> Self {
LogicalPlan::PythonScan {
options: PythonOptions {
scan_fn,
schema: Arc::new(schema),
..Default::default()
},
}
.into()
}
}