Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

ibis

> 数据库
Open source

the portable Python dataframe library

6.6K stars0 likes0 views
WebsiteGitHub

About

the portable Python dataframe library

Ibis

What is Ibis?

Ibis is the portable Python dataframe library:

  • Fast local dataframes (via DuckDB by default)
  • Lazy dataframe expressions
  • Interactive mode for iterative data exploration
  • Compose Python dataframe and SQL code
  • Use the same dataframe API for more than 20 backends
  • Iterate locally and deploy remotely by changing a single line of code

See the documentation on "Why Ibis?" to learn more.

Getting started

You can pip install Ibis with a backend and example data:

bash
pip install 'ibis-framework[duckdb,examples]'

Tip

See the installation guide for more installation options.

Then use Ibis:

…

Tip

See the getting started tutorial for a full introduction to Ibis.

Python + SQL: better together

For most backends, Ibis works by compiling its dataframe expressions into SQL:

python
>>> ibis.to_sql(g)
SELECT
  "t1"."species",
  "t1"."island",
  "t1"."count"
FROM (
  SELECT
    "t0"."species",
    "t0"."island",
    COUNT(*) AS "count"
  FROM "penguins" AS "t0"
  GROUP BY
    1,
    2
) AS "t1"
ORDER BY
  "t1"."count" ASC

You can mix SQL and Python code:

…

This allows you to combine the flexibility of Python with the scale and performance of modern SQL.

Backends

Ibis supports more than 20 backends:

  • Apache DataFusion
  • Apache Druid
  • Apache Flink
  • Apache Impala
  • Apache PySpark
  • Athena
  • BigQuery
  • ClickHouse
  • Databricks
  • DuckDB
  • Exasol
  • Materialize
  • MySQL/MariaDB
  • Oracle
  • Polars
  • PostgreSQL
  • RisingWave
  • SingleStoreDB
  • SQL Server
  • SQLite
  • Snowflake
  • Trino

How it works

Most Python dataframes are tightly coupled to their execution engine. And many databases only support SQL, with no Python API. Ibis solves this problem by providing a common API for data manipulation in Python, and compiling that API into the backend’s native language. This means you can learn a single API and use it across any supported backend (execution engine).

Ibis broadly supports two types of backend:

  1. SQL-generating backends
  2. DataFrame-generating backends

Portability

To use different backends, you can set the backend Ibis uses:

python
>>> ibis.set_backend("duckdb")
>>> ibis.set_backend("polars")
>>> ibis.set_backend("datafusion")

Typically, you'll create a connection object:

python
>>> con = ibis.duckdb.connect()
>>> con = ibis.polars.connect()
>>> con = ibis.datafusion.connect()

And work with tables in that backend:

python
>>> con.list_tables()
['penguins']
>>> t = con.table("penguins")

You can also read from common file formats like CSV or Apache Parquet:

python
>>> t = con.read_csv("penguins.csv")
>>> t = con.read_parquet("penguins.parquet")

This allows you to iterate locally and deploy remotely by changing a single line of code.

Tip

Check out the blog on backend agnostic arrays for one example using the same code across DuckDB and BigQuery.

Community and contributing

Ibis is an open source project and welcomes contributions from anyone in the community.

  • Read the contributing guide.
  • We care about keeping the community welcoming for all. Check out the code of conduct.
  • The Ibis project is open sourced under the Apache License.

Join our community by interacting on GitHub or chatting with us on Zulip.

For more information visit https://ibis-project.org/.

Governance

The Ibis project is an independently governed open source community project to build and maintain the portable Python dataframe library. Ibis has contributors across a range of data companies and institutions.

Issues· 545 open

View all issuesOpen on GitHub
  • #3058

    Dependency Dashboard

    dependenciesUpdated Sep 23, 2026
  • #12124

    bug(duckdb): create_table with in-memory data fails with sqlglot>=30.18 (nameless DROP VIEW)

    Updated Sep 18, 2026
  • #11996

    feat: multiple 'on' columns in upsert

    featurebackendsUpdated Sep 17, 2026
  • #11860

    bug: ArrayDistinct returns float/NaN instead of int/None when using Spark Connect

    bugUpdated Sep 16, 2026
  • #11815

    bug: resolving chained mutations using deferred expressions fails

    bugUpdated Sep 14, 2026
  • #12102

    chore(release): 13.0.0

    Updated Sep 10, 2026
  • #12105

    bug(trino): negative array index compiles to element_at(arr, idx + 1), which is index 0 for [-1]

    Updated Sep 8, 2026
  • #12107

    feat(trino): string→timestamp cast should read ISO 8601 with a T separator

    Updated Sep 6, 2026
  • #12008

    bug: tracking issue for duckdb 1.5.x compatibility

    bugUpdated Sep 5, 2026
  • #11978

    bug: reading geospatial data fails with duckdb>=1.5.1

    bugUpdated Sep 5, 2026

> Tags

Pythonbigqueryclickhousedatabasedatafusion

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库