⌘+k ctrl+k
1.4 (LTS)
搜索快捷键 cmd + k | ctrl + k
导出到 Pandas

查询结果可以使用 df() 函数转换为 Pandas DataFrame。

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 导入数据。

© 2025 DuckDB 基金会,阿姆斯特丹,荷兰
行为准则 商标使用指南