def arrow_table_from_vaex_df(ds, column_names=None, selection=None, strings=True, virtual=False):
names = []<EOL>arrays = []<EOL>for name, array in ds.to_items(column_names=column_names, selection=selection, strings=strings, virtual=virtual):<EOL><INDENT>names.append(name)<EOL>arrays.append(arrow_array_from_numpy_array(array))<EOL><DEDENT>return pyarrow.Table.from_arrays(arrays, names)<EOL>
Implementation of Dataset.to_arrow_table