daft.from_arrow
daft.from_arrow#
- daft.from_arrow(data: Union[pa.Table, List[pa.Table]]) DataFrame [source]#
Creates a DataFrame from a pyarrow Table.
Example
>>> t = pa.table({"a": [1, 2, 3], "b": ["foo", "bar", "baz"]}) >>> df = daft.from_arrow(t)
- Parameters
data – pyarrow Table(s) that we wish to convert into a Daft DataFrame.
- Returns
DataFrame created from the provided pyarrow Table.
- Return type