MCPcopy Create free account
hub / github.com/apache/arrow / Convert

Method Convert

python/pyarrow/src/arrow/python/python_to_arrow.cc:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 static Result<std::nullptr_t> Convert(const NullType*, const O&, I obj) {
194 if (obj == Py_None) {
195 return nullptr;
196 } else {
197 return Status::Invalid("Invalid null value");
198 }
199 }
200
201 static Result<bool> Convert(const BooleanType*, const O&, I obj) {
202 if (obj == Py_True) {

Callers

nothing calls this directly

Calls 15

has_numpyFunction · 0.85
InvalidValueFunction · 0.85
CIntFromPythonFunction · 0.85
PyIntScalar_CheckFunction · 0.85
PyFloatScalar_CheckFunction · 0.85
PyFloat_AsHalfFunction · 0.85
FromDoubleFunction · 0.85
DecimalFromPyObjectFunction · 0.85
PyDate_to_daysFunction · 0.85
PyDateTime_to_msFunction · 0.85

Tested by

no test coverage detected