⌘+k ctrl+k
1.3 (稳定版)
搜索快捷键 cmd + k | ctrl + k
导出到 Pandas

查询结果可以使用 Pandasdf() 函数转换为 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 导入