Skip to content

feat: Add Narwhals/Ibis support for BE compatibility #262

@luizhsuperti

Description

@luizhsuperti

Big project:
Currently cluster-experiments only accepts pandas DataFrames. tea-tasting has capabilities of
analyzing A/B analysis directly on data stacks (Polars, DuckDB, BigQuery, Snowflake) without pulling
data into pandas first.

Proposal

Integrate Narwhals to accept any
DataFrame-like object.

A separate, follow-up could add
Ibis support for true in-database
computation (BigQuery, Snowflake, ClickHouse, etc.).

Suggested scope (Phase 1 - Narwhals)

  • Wrap public-facing analyze() and power_analysis() entrypoints with
    nw.from_native()
  • Convert to pandas internally for now (zero-change to existing logic)
  • Add Polars to the test matrix

Suggested scope (Phase 2 - Ibis)

  • Push aggregations down to the backend before pulling into Python
  • Only relevant for AnalysisPlan.analyze(), not simulation-based power analysis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions