daft.DataFrame.to_pydict

daft.DataFrame.to_pydict#

DataFrame.to_pydict() Dict[str, List[Any]][source]#

Converts the current DataFrame to a python dictionary. The dictionary contains Python lists of Python objects for each column.

If results have not computed yet, collect will be called.

Returns:

python dict converted from a Daft DataFrame

Note

This call is blocking and will execute the DataFrame when called

Return type:

dict[str, list[Any]]