Skip to main content

A Distributed DataFrame library for large scale complex data processing.

Project description

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

WebsiteDocsInstallation10-minute tour of DaftCommunity and Support

Daft: the distributed Python dataframe for complex data

Daft is a fast, Pythonic and scalable open-source dataframe library built for Python and Machine Learning workloads.

Daft is currently in its Beta release phase - please expect bugs and rapid improvements to the project. We welcome user feedback/feature requests in our Discussions forums

Table of Contents

About Daft

The Daft dataframe is a table of data with rows and columns. Columns can contain any Python objects, which allows Daft to support rich complex data types such as images, audio, video and more.

  1. Any Data: Beyond the usual strings/numbers/dates, Daft columns can also hold complex multimodal data such as Images, Embeddings and Python objects. Ingestion and basic transformations of complex data is extremely easy and performant in Daft.

  2. Notebook Computing: Daft is built for the interactive developer experience on a notebook - intelligent caching/query optimizations accelerates your experimentation and data exploration.

  3. Distributed Computing: Rich complex formats such as images 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 getdaft.

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 10-minute 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

  • 10-minute tour of Daft - 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

Contributing

To start contributing to Daft, please read CONTRIBUTING.md

Telemetry

To help improve Daft, we collect non-identifiable data.

To disable this behavior, set the following environment variable: DAFT_ANALYTICS_ENABLED=0

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.

License

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

getdaft-0.1.18.tar.gz (728.7 kB view details)

Uploaded Source

Built Distributions

getdaft-0.1.18-cp37-abi3-win_amd64.whl (13.4 MB view details)

Uploaded CPython 3.7+ Windows x86-64

getdaft-0.1.18-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.9 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

getdaft-0.1.18-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (16.4 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

getdaft-0.1.18-cp37-abi3-macosx_11_0_arm64.whl (12.7 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

getdaft-0.1.18-cp37-abi3-macosx_10_7_x86_64.whl (14.0 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

Details for the file getdaft-0.1.18.tar.gz.

File metadata

  • Download URL: getdaft-0.1.18.tar.gz
  • Upload date:
  • Size: 728.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for getdaft-0.1.18.tar.gz
Algorithm Hash digest
SHA256 e49da15e58f1852be61cf1becb7f457b57390a0822312637d977e3124a3cd3ff
MD5 945bc30ab7bdb08d389294dc0a48bfd9
BLAKE2b-256 33d88b3f5990102a28d64ee69bc1755e4a819a017f3962d519ffc2b86946ce49

See more details on using hashes here.

File details

Details for the file getdaft-0.1.18-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: getdaft-0.1.18-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 13.4 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for getdaft-0.1.18-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dc648f63670379dce45b32db3e2ca17df6f086788d58f289e0776251b4018778
MD5 c6dde52679cf1bca1376ce1e99b7573c
BLAKE2b-256 ee0249139bc7217a37fcb2fd2d8cd7e4d625b28d00c358ca46fce9798ee80102

See more details on using hashes here.

File details

Details for the file getdaft-0.1.18-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for getdaft-0.1.18-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73e1d3e3a100296ae5d1c513d368201b4ab70b514a288af0cf3e7aa8a728ac9e
MD5 f900ff991616751a572313a7b383dd23
BLAKE2b-256 163e50cbcc639f09efa6b1430526aad5681b206823d4fa98c2cfcf97a8d91d3a

See more details on using hashes here.

File details

Details for the file getdaft-0.1.18-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for getdaft-0.1.18-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 615e0e650cadeeffdc8d8392bcc5afec4546606aaaa9f8c6c93a5b521fe233d0
MD5 09bdea43080f73ae74e926e97a1362d6
BLAKE2b-256 f00c0058033b5d7e5a0ae32314eba4570de2ac9ea37d5f20385faae30ad59237

See more details on using hashes here.

File details

Details for the file getdaft-0.1.18-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for getdaft-0.1.18-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4725d5bb7d6db61b6de9c486f48e0b4993e7ee64e2eb74d1ed6aece0ff43c3f5
MD5 1e841264231be2b9e8582639dd98580b
BLAKE2b-256 d400d6361f1b2613ab029d28c4c9b39f3c5b376242cf0b99aa9a059b61108c54

See more details on using hashes here.

File details

Details for the file getdaft-0.1.18-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for getdaft-0.1.18-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 657c1aa01719afcd4f47d3be361062dd24f2d58fc38ddb31f0ac418b34d80278
MD5 72f126d631481fa49ee5b85cc231b59a
BLAKE2b-256 401e22af8542892548c1536ccac3d1a42487c58810c4be2ef377c3f3fd56f526

See more details on using hashes here.

Supported by

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