Skip to main content

leanframe

(This is not an official Google product.)

LeanFrame is a pandas-like API built on top of Ibis. This is a fork of an early version of bigframes (https://github.com/googleapis/python-bigquery-dataframes) and is intended to be a minimal wrapper on top of Ibis without any of the pandas features that make bigframes more complex.

Installation

LeanFrame is available on PyPI.

pip install leanframe

Also, install the dependencies for an Ibis backend, such as

pip install 'ibis-framework[bigquery]'

Usage

To start using LeanFrame, first create a Session from an Ibis backend, such as DuckDB (local) or BigQuery (Google Cloud).

import ibis
import leanframe

connection = ibis.bigquery.connect(
    project_id="your-project-id",
)
session = leanframe.Session(connection)

Create a DataFrame from a table.

df = session.read_sql_table("bigquery-public-data.usa_names.usa_1910_2013")

Perform pandas operations.

TODO

Get your results as a pandas DataFrame.

pddf = df.to_pandas()

Disclaimer

This is a personal project. Does not reflect my employer.

Release files for leanframe 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leanframe 0.2.0
File Size Uploaded
leanframe-0.2.0.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leanframe 0.2.0
File Interpreter ABI Platform
leanframe-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / leanframe-0.2.0.tar.gz

Download URL leanframe-0.2.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e6080ac63f654b953a0ba8d43ad3ff09954728f4d772017e92025e5b0e6e7a51
BLAKE2b-256 checksum
How to use checksums
5c9edbd823e5baaa31f3ec405e3c4efb41b68799a1e8b821a747f353f80019e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / leanframe-0.2.0-py3-none-any.whl

Download URL leanframe-0.2.0-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c723c43ffe08e5c5d22268642b503f78616a9944d8d68b44517ef9da4de73a61
BLAKE2b-256 checksum
How to use checksums
755a144edf1bcd1b3fea046be917ed05e87a7da505a3e7efca9ca87bf424af07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page