How to convert PyArrow table to Arrow table when interfacing between PyArrow in python and Arrow in C++
问题 I have a C++ library which is built against the Apache Arrow C++ libraries, with a binding to python using Pybind. I'd like to be able to write a function in C++ to take a table constructed with PyArrow, like: void test(arrow::Table test); Passing in a PyArrow table like: tab = pa.Table.from_pandas(df) mybinding.test(tab) If I do a naive function as above, I get: TypeError: arrow_test(): incompatible function arguments. The following argument types are supported: 1. (arg0: arrow::Table) ->