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):
Python | Rust |
---|---|
integer | i64 |
float | f64 |
str | String |
bool | bool |
vector | array |
list | ScalarValue::List |