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()
    }
}
