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

Method SetBlockData

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

Source from the content-addressed store, hash-verified

392 virtual ~PandasWriter() {}
393
394 void SetBlockData(PyObject* arr) {
395 block_arr_.reset(arr);
396 block_data_ =
397 reinterpret_cast<uint8_t*>(PyArray_DATA(reinterpret_cast<PyArrayObject*>(arr)));
398 }
399
400 /// \brief Either copy or wrap single array to create pandas-compatible array
401 /// for Series or DataFrame. num_columns_ can only be 1. Will try to zero

Callers 1

WriteIndicesMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected