Export to Pandas
The result of a query can be converted to a Pandas DataFrame using the df() function.
import duckdb
# read the result of an arbitrary SQL query to a Pandas DataFrameresults = duckdb.sql("SELECT 42").df()results 420 42See Also
DuckDB also supports importing from Pandas.