Экспорт в Pandas
Результат запроса можно преобразовать в таблицу Pandas DataFrame с помощью функции df().
import duckdb
# read the result of an arbitrary SQL query to a Pandas DataFrame
results = duckdb.sql("SELECT 42").df()
results 42 0 42
См. также
DuckDB также поддерживает импорт из Pandas.
© Copyright 2018–2024 Stichting DuckDB Foundation
Licensed under the MIT License.
https://duckdb.org/docs/guides/python/export_pandas.html