| 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 |