Skip to main content
DataStore is chDB’s pandas-compatible API that combines the familiar pandas DataFrame interface with the power of SQL query optimization and allows you to write pandas-style code while getting ClickHouse performance.

Key features

  • Pandas Compatibility: 209 pandas DataFrame methods, 56 .str methods, 42+ .dt methods
  • SQL Optimization: Operations automatically compile to optimized SQL queries
  • Lazy Evaluation: Operations are deferred until results are needed
  • 630+ API Methods: Comprehensive API surface for data manipulation
  • ClickHouse Extensions: Additional accessors (.arr, .json, .url, .ip, .geo) not available in pandas

Architecture

DataStore uses lazy evaluation with dual-engine execution:
  1. Lazy Operation Chain: Operations are recorded, not executed immediately
  2. Smart Engine Selection: QueryPlanner routes each segment to optimal engine (chDB for SQL, Pandas for complex ops)
  3. Intermediate Caching: Results cached at each step for fast iterative exploration
See Execution Model for details.

One-Line migration from Pandas

Your existing pandas code works unchanged, but now runs on the ClickHouse engine.

Performance comparison

DataStore delivers significant performance improvements over pandas, especially for aggregation and complex pipelines: Benchmark on 10M rows. See benchmark script and Performance Guide for details.

When to use DataStore

Use DataStore when:
  • Working with large datasets (millions of rows)
  • Performing aggregations and groupby operations
  • Querying data from files, databases, or cloud storage
  • Building complex data pipelines
  • You want pandas API with better performance
Use raw SQL API when:
  • You prefer writing SQL directly
  • You need fine-grained control over query execution
  • Working with ClickHouse-specific features not exposed in pandas API

Feature comparison

API statistics

Getting Started

API reference

Advanced topics

Configuration & debugging

Pandas user guides

Quick example

Next steps

Last modified on June 12, 2026