clickhouse http api的pandas接口
pandahouse的Python项目详细描述
潘达霍斯
clickhouse http api的pandas接口
安装
pip install pandahouse
使用量
将数据框写入ClickHouse
connection={'host':'http://clickhouse-host:8123','database':'test'affected_rows=to_clickhouse(df,table='name',connection=connection)
正在读取熊猫的任意clickhouse查询
df=read_clickhouse('SELECT * FROM {db}.table',index_col='id',connection=connection)