Skip to main content

Zero-dependency lazy dataframe. Lo-fi data processing for Python.

Project description

pyfloe

Zero-dependency, lazy dataframes for Python.

pyfloe is a pure-Python dataframe library with lazy evaluation, query optimization, and type safety — no external dependencies required.

import pyfloe as pf

result = (
    pf.read_csv("orders.csv")
    .filter(pf.col("amount") > 100)
    .with_column("rank", pf.row_number()
        .over(partition_by="region", order_by="amount"))
    .select("order_id", "region", "amount", "rank")
    .sort("region", "rank")
    .collect()
)

Installation

pip install pyfloe

Key features

  • Lazy evaluation — operations build a query plan; data flows only when you collect
  • Expression API — composable column expressions with arithmetic, comparisons, string methods, and conditionals
  • Window functionsrow_number, rank, dense_rank, cumsum, lag, lead, and more
  • Datetime handling — auto-detection from CSV, .dt accessor for extraction, truncation, and arithmetic
  • Streaming I/O — read and write CSV, TSV, JSONL, JSON, and fixed-width files with constant memory
  • Query optimizer — filter pushdown and column pruning
  • Type safety — TypedDict validation and TypedLazyFrame for IDE-friendly typed results

Documentation

Full documentation is available at edwardvaneechoud.github.io/pyfloe.

Tutorial

Want to understand how a dataframe engine works under the hood? Build Your Own DataFrame is a five-module course that takes pyfloe apart piece by piece — expression trees, plan nodes, the volcano model, hash joins, and the query optimizer — until nothing feels like magic.

License

MIT

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

pyfloe-0.1.4.tar.gz (67.3 kB view details)

Uploaded Source

Built Distribution

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

pyfloe-0.1.4-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file pyfloe-0.1.4.tar.gz.

File metadata

  • Download URL: pyfloe-0.1.4.tar.gz
  • Upload date:
  • Size: 67.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyfloe-0.1.4.tar.gz
Algorithm Hash digest
SHA256 730fef657b81a3b887e6c8234ca20c01efdf02e2f700b9a96c154feff29d178a
MD5 007df51933becdade83761f5a4f4545d
BLAKE2b-256 ea6b7f28634e9bf88975580d1cdf20cac141f2b0704e3f51203106fa95cabaf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfloe-0.1.4.tar.gz:

Publisher: publish.yml on Edwardvaneechoud/pyfloe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfloe-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyfloe-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyfloe-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f3496a3c2d81765a3e1f7ef814377649f52c4d088e4bb57f3ee708c6f05d23e8
MD5 92781c41c3b423c6c30f833b33f52f5e
BLAKE2b-256 ca2608698d722bab839ebc5e9bc1b752b508a71f078529f7d9a39ac094dd85d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfloe-0.1.4-py3-none-any.whl:

Publisher: publish.yml on Edwardvaneechoud/pyfloe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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