Skip to main content

Lazy Pandas

Lazy Pandas is a Python library that simplifies the use duckdb wrapping the pandas API. This library is not a pandas replacement, but a way to use the pandas API with DuckDB. Pandas is awesome and adopted by many people, but it is not the best tool for datasets that do not fit in memory. So why not give the power of duckdb to pandas users?

Installation

To install Lazy Pandas, you can use pip:

pip install lazy-pandas

Usage

Here is a basic example of how to use Lazy Pandas:

import lazy_pandas as lp

df = lp.read_csv(location, parse_dates=["pickup_datetime"])
df = df[["pickup_datetime", "passenger_count"]]
df["pickup_date"] = df["pickup_datetime"].dt.date
df = df.sort_values("pickup_date")
df = df.collect()  # Materialize the lazy DataFrame to a pandas DataFrame

Features

  • Lazy evaluation
  • SQL support
  • Support for DuckDB extensions (e.g., Delta, Iceberg, etc.)

Contribution

Contributions are welcome! Feel free to open issues and pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for lazy-pandas 0.1.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 lazy-pandas 0.1.0
File Size Uploaded Provenance
lazy_pandas-0.1.0.tar.gz 316.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lazy-pandas 0.1.0
File Interpreter ABI Platform
lazy_pandas-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 334.3 kB

Release files / lazy_pandas-0.1.0.tar.gz

Download URL lazy_pandas-0.1.0.tar.gz
Size 316.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b3bffb92946f794b11c3b6dbf2e829592bb7f6ef0d955dd13a771073c99e167
BLAKE2b-256 checksum
How to use checksums
fd604fb2da6f9ca9611fb8b456c56507227a71799c8be3b83ded79f04eaf714e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2025.

Transparency log

Release files / lazy_pandas-0.1.0-py3-none-any.whl

Download URL lazy_pandas-0.1.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83499936537d49fd3acd6ee44fb5a8646c5db017a4fbe8b777814424b30b06ab
BLAKE2b-256 checksum
How to use checksums
49bef4f578d4bdf3ee312e46e0f2632cea5b19c001b40cffa9d12d412e572bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2025.

Transparency log

Security for lazy-pandas 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lazy_pandas-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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