Skip to main content

LeanFrame is a pandas-like API built on top of Ibis.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leanframe-0.2.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leanframe-0.2.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file leanframe-0.2.0.tar.gz.

File metadata

  • Download URL: leanframe-0.2.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for leanframe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e6080ac63f654b953a0ba8d43ad3ff09954728f4d772017e92025e5b0e6e7a51
MD5 d4f2dd3e3ebe27a815c6468c8bd3fede
BLAKE2b-256 5c9edbd823e5baaa31f3ec405e3c4efb41b68799a1e8b821a747f353f80019e0

See more details on using hashes here.

File details

Details for the file leanframe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: leanframe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for leanframe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c723c43ffe08e5c5d22268642b503f78616a9944d8d68b44517ef9da4de73a61
MD5 d9e244aa1e884d73d217c006a1c93cd2
BLAKE2b-256 755a144edf1bcd1b3fea046be917ed05e87a7da505a3e7efca9ca87bf424af07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page