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

Function SetNdarrayBase

python/pyarrow/src/arrow/python/arrow_to_pandas.cc:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244Status SetNdarrayBase(PyArrayObject* arr, PyObject* base) {
245 if (PyArray_SetBaseObject(arr, base) == -1) {
246 // Error occurred, trust that SetBaseObject sets the error state
247 Py_XDECREF(base);
248 RETURN_IF_PYERROR();
249 }
250 return Status::OK();
251}
252
253Status SetBufferBase(PyArrayObject* arr, const std::shared_ptr<Buffer>& buffer) {
254 PyObject* base;

Callers 2

SetBufferBaseFunction · 0.85
MakeNumPyViewFunction · 0.85

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected