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

Function InvalidValue

python/pyarrow/src/arrow/python/helpers.cc:456–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454PyObject* BorrowPandasDataOffsetType() { return pandas_DateOffset; }
455
456Status InvalidValue(PyObject* obj, const std::string& why) {
457 auto obj_as_str = PyObject_StdStringRepr(obj);
458 return Status::Invalid("Could not convert ", std::move(obj_as_str), " with type ",
459 Py_TYPE(obj)->tp_name, ": ", why);
460}
461
462Status InvalidType(PyObject* obj, const std::string& why) {
463 auto obj_as_str = PyObject_StdStringRepr(obj);

Callers 3

VisitMethod · 0.85
VisitArrowScalarMethod · 0.85
ConvertMethod · 0.85

Calls 2

PyObject_StdStringReprFunction · 0.85
InvalidFunction · 0.50

Tested by

no test coverage detected