Skip to main content

Daft dataframes can load any data such as PDF documents, images, protobufs, csv, parquet and audio files into a table dataframe structure for easy querying

Github Actions tests PyPI latest tag Coverage slack community

Website • Docs • Installation • Daft Quickstart • Community and Support

Daft: Unified Engine for Data Analytics, Engineering & ML/AI

Daft is a distributed query engine for large-scale data processing using Python or SQL, implemented in Rust.

  • Familiar interactive API: Lazy Python Dataframe for rapid and interactive iteration, or SQL for analytical queries

  • Focus on the what: Powerful Query Optimizer that rewrites queries to be as efficient as possible

  • Data Catalog integrations: Full integration with data catalogs such as Apache Iceberg

  • Rich multimodal type-system: Supports multimodal types such as Images, URLs, Tensors and more

  • Seamless Interchange: Built on the Apache Arrow In-Memory Format

  • Built for the cloud: Record-setting I/O performance for integrations with S3 cloud storage

Table of Contents

About Daft

Daft was designed with the following principles in mind:

  1. Any Data: Beyond the usual strings/numbers/dates, Daft columns can also hold complex or nested multimodal data such as Images, Embeddings and Python objects efficiently with it’s Arrow based memory representation. Ingestion and basic transformations of multimodal data is extremely easy and performant in Daft.

  2. Interactive Computing: Daft is built for the interactive developer experience through notebooks or REPLs - intelligent caching/query optimizations accelerates your experimentation and data exploration.

  3. Distributed Computing: Some workloads can quickly outgrow your local laptop’s computational resources - Daft integrates natively with Ray for running dataframes on large clusters of machines with thousands of CPUs/GPUs.

Getting Started

Installation

Install Daft with pip install daft.

For more advanced installations (e.g. installing from source or with extra dependencies such as Ray and AWS utilities), please see our Installation Guide

Quickstart

Check out our quickstart!

In this example, we load images from an AWS S3 bucket’s URLs and resize each image in the dataframe:

import daft

# Load a dataframe from filepaths in an S3 bucket
df = daft.from_glob_path("s3://daft-public-data/laion-sample-images/*")

# 1. Download column of image URLs as a column of bytes
# 2. Decode the column of bytes into a column of images
df = df.with_column("image", df["path"].url.download().image.decode())

# Resize each image into 32x32
df = df.with_column("resized", df["image"].image.resize(32, 32))

df.show(3)

Dataframe code to load a folder of images from AWS S3 and create thumbnails

Benchmarks

Benchmarks for SF100 TPCH

To see the full benchmarks, detailed setup, and logs, check out our benchmarking page.

More Resources

  • Daft Quickstart - learn more about Daft’s full range of capabilities including dataloading from URLs, joins, user-defined functions (UDF), groupby, aggregations and more.

  • User Guide - take a deep-dive into each topic within Daft

  • API Reference - API reference for public classes/functions of Daft

  • SQL Reference - Daft SQL reference

Contributing

We <3 developers! To start contributing to Daft, please read CONTRIBUTING.md This document describes the development lifecycle and toolchain for working on Daft. It also details how to add new functionality to the core engine and expose it through a Python API.

Here’s a list of good first issues to get yourself warmed up with Daft. Comment in the issue to pick it up, and feel free to ask any questions!

Telemetry

To help improve Daft, we collect non-identifiable data via Scarf (https://scarf.sh).

To disable this behavior, set the environment variable DO_NOT_TRACK=true.

The data that we collect is:

  1. Non-identifiable: Events are keyed by a session ID which is generated on import of Daft

  2. Metadata-only: We do not collect any of our users’ proprietary code or data

  3. For development only: We do not buy or sell any user data

Please see our documentation for more details.

https://static.scarf.sh/a.png?x-pxid=31f8d5ba-7e09-4d75-8895-5252bbf06cf6

License

Daft has an Apache 2.0 license - please see the LICENSE file.

Metadata

Release files for daft 0.5.11

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

Source distribution (sdist)

Source distribution for daft 0.5.11
File Size Uploaded
daft-0.5.11.tar.gz 5.0 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for daft 0.5.11
File
daft-0.5.11-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
daft-0.5.11-cp39-abi3-manylinux_2_24_x86_64.whl CPython 3.9 abi3 Linux glibc 2.24+ x86-64 Details
daft-0.5.11-cp39-abi3-manylinux_2_24_aarch64.whl CPython 3.9 abi3 Linux glibc 2.24+ ARM64 Details
daft-0.5.11-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
daft-0.5.11-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 218.7 MB

Release files / daft-0.5.11.tar.gz

Download URL daft-0.5.11.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b2495828b27e1658505b1c088eeda7eaa02aae51715528c738fe4b2e367eed28
BLAKE2b-256 checksum
How to use checksums
2ae4e744da8cf5894f020fd844c36e888d9097067feeecdca625d2a102ffd7dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release files / daft-0.5.11-cp39-abi3-win_amd64.whl

Download URL daft-0.5.11-cp39-abi3-win_amd64.whl
Size 43.0 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
771ebd208247600391459e5b45b8895d64071550aef407f5185cf9a81ea70d67
BLAKE2b-256 checksum
How to use checksums
60ce161a9f940701bdb9892594d944e5b4d4d7d9646af04d1e888f3bed6d1c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release files / daft-0.5.11-cp39-abi3-manylinux_2_24_x86_64.whl

Download URL daft-0.5.11-cp39-abi3-manylinux_2_24_x86_64.whl
Size 44.5 MB
Tags CPython 3.9 Linux glibc 2.24+ x86-64 abi3
SHA-256 checksum
How to use checksums
640cbd53bfba15184d942206d1a6a0b3baf00c9c98c689dbe432e3728b125b94
BLAKE2b-256 checksum
How to use checksums
932d7672c55b551214ec75065e11833ea5899e9415947ff68f72b929d875cd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release files / daft-0.5.11-cp39-abi3-manylinux_2_24_aarch64.whl

Download URL daft-0.5.11-cp39-abi3-manylinux_2_24_aarch64.whl
Size 41.5 MB
Tags CPython 3.9 Linux glibc 2.24+ ARM64 abi3
SHA-256 checksum
How to use checksums
aa01effca4e6d23df2e767bee126c853a6e6e2dc5c27357d081b1973423e4f87
BLAKE2b-256 checksum
How to use checksums
6b981f6e474eeb6605e9e8b1b35726dc1f28f7d4d8d34f362e3d59d7305608cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release files / daft-0.5.11-cp39-abi3-macosx_11_0_arm64.whl

Download URL daft-0.5.11-cp39-abi3-macosx_11_0_arm64.whl
Size 40.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aa21103bdeffc7a4810d79ed21822fa279409e53f6eb4d9dd711fb44aa162c30
BLAKE2b-256 checksum
How to use checksums
8871f1058cfc05ee69ed4f6e43460599a6c9f64bb39b58d5d4fca78f41dde8e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release files / daft-0.5.11-cp39-abi3-macosx_10_12_x86_64.whl

Download URL daft-0.5.11-cp39-abi3-macosx_10_12_x86_64.whl
Size 44.2 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
661978a311c9a75c071c1be5d6576e47b1d5a698d4472851d10f82f451970780
BLAKE2b-256 checksum
How to use checksums
22b1e550d8ae21abfc8f65f8a8f84bf618bec00162b08dda0805b61831f267c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Jul 18, 2025.

Transparency log

Release history Release notifications | RSS feed

0.7.25

5 release files

0.7.24

5 release files

0.7.21

5 release files

0.7.20

5 release files

0.7.19

5 release files

0.7.16

6 release files

0.7.14

6 release files

0.7.13

6 release files

0.7.12

6 release files

0.7.11

6 release files

0.7.9

6 release files

0.7.8

6 release files

0.7.7

6 release files

0.7.6

6 release files

0.7.5

6 release files

0.7.4

6 release files

0.7.3

6 release files

0.7.2

6 release files

0.7.1

6 release files

0.7.0

6 release files

0.6.14

6 release files

0.6.13

6 release files

0.6.12

6 release files

0.6.8

6 release files

0.6.7

6 release files

0.6.6

6 release files

0.6.5

6 release files

0.6.4

6 release files

0.6.3

6 release files

0.6.2

6 release files

0.6.1

6 release files

0.6.0

6 release files

0.5.22

6 release files

0.5.21

6 release files

0.5.20

6 release files

0.5.19

6 release files

0.5.14

6 release files

0.5.13

6 release files

0.5.12

6 release files

This release

0.5.11 This release

6 release files

0.5.10

6 release files

0.5.9

6 release files

0.5.8

6 release files

0.5.7

6 release files

0.5.6

6 release files

0.5.5

6 release files

0.5.4

6 release files

0.5.3

6 release files

0.5.2

6 release files

0.5.1

6 release files

0.5.0

6 release files

0.4.18

6 release files

0.4.17

6 release files

0.4.16

6 release files

0.4.15

6 release files

0.4.12

6 release files

0.4.11

6 release files

0.4.10

6 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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