script::python::rspython::builtins

Function try_into_columnar_value

source
pub fn try_into_columnar_value(
    obj: PyObjectRef,
    vm: &VirtualMachine,
) -> PyResult<ColumnarValue>
Expand description

try to turn a Python Object into a PyVector or a scalar that can be use for calculate

supported scalar are(leftside is python data type, right side is rust type):

PythonRust
integeri64
floatf64
strString
boolbool
vectorarray
listScalarValue::List