daft.from_pylist#
- from_pylist(data: List[Dict[str, Any]]) DataFrame [source]#
Creates a DataFrame from a list of dictionaries.
Example
>>> import daft >>> df = daft.from_pylist([{"foo": 1}, {"foo": 2}]) >>> df.show() ╭───────╮ │ foo │ │ --- │ │ Int64 │ ╞═══════╡ │ 1 │ ├╌╌╌╌╌╌╌┤ │ 2 │ ╰───────╯ (Showing first 2 of 2 rows)
- Parameters:
data – List of dictionaries, where each key is a column name.
- Returns:
DataFrame created from list of dictionaries.
- Return type: