Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kszucs/pandahouse
Pandas interface for Clickhouse database
https://github.com/kszucs/pandahouse
clickhouse dataframe pandas
Last synced: 19 days ago
JSON representation
Pandas interface for Clickhouse database
- Host: GitHub
- URL: https://github.com/kszucs/pandahouse
- Owner: kszucs
- License: mit
- Created: 2017-05-03T10:39:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T08:27:15.000Z (almost 4 years ago)
- Last Synced: 2024-10-14T10:18:06.709Z (about 2 months ago)
- Topics: clickhouse, dataframe, pandas
- Language: Python
- Size: 61.5 KB
- Stars: 229
- Watchers: 10
- Forks: 70
- Open Issues: 18
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-clickhouse - kszucs/pandahouse - Pandahouse is a Pandas interface for the Clickhouse database that simplifies database interactions through Python. (Language bindings / Python)
README
Pandahouse
==========Pandas interface for Clickhouse HTTP API
Install
-------.. code:: bash
pip install pandahouse
Usage
-----Writing dataframe to clickhouse
.. code:: python
connection = {'host': 'http://clickhouse-host:8123',
'database': 'test'}
affected_rows = to_clickhouse(df, table='name', connection=connection)Reading arbitrary clickhouse query to pandas
.. code:: python
df = read_clickhouse('SELECT * FROM {db}.table', index_col='id',
connection=connection)