Skip to main content

infer_udf_output_dtype

Function infer_udf_output_dtype 

pub fn infer_udf_output_dtype(
    f: &dyn Fn(&[Column]) -> Result<Column, PolarsError>,
    input_fields: &[Field],
) -> Option<DataType>
Available on crate feature lazy only.
Expand description

Try to infer the output datatype of a UDF.

This will call the UDF in a few ways and see if it can get an output type without erroring.