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.2.2.tar.gz (789.6 kB view details)

Uploaded Source

Built Distributions

getdaft-0.2.2-cp37-abi3-win_amd64.whl (15.9 MB view details)

Uploaded CPython 3.7+ Windows x86-64

getdaft-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.3 MB view details)

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

getdaft-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

getdaft-0.2.2-cp37-abi3-macosx_11_0_arm64.whl (15.1 MB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

getdaft-0.2.2-cp37-abi3-macosx_10_7_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for getdaft-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a878eea0de9cabd843588a49931b502764244a717731ada954afed4eb1640ab4
MD5 8bbdb2b04428ddb125a22be3517fb355
BLAKE2b-256 c2accce0402c6e4d624057f6ee9daad6824dcd6ec2e1ce258fe32bab929c4aa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getdaft-0.2.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 15.9 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.2.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 207c77a5beaca0f9463a70117b4202158d7db06dd1d736b2f079c949e2d233c9
MD5 e0acd7a966bf6dba4b015a1ae1e00aeb
BLAKE2b-256 4785a7b0175913302f3a131c0e92436e23323c0658119a080b242407b2630627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getdaft-0.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbf01c40928612930174cbaf8c2d1706f2a8eb92cf4b0d20ccf99d20945e0493
MD5 40ce1a2297d1575cc5c4c6db795c7fc3
BLAKE2b-256 7545386ac1c0c3b7582a82f412dc4cfb73ab5ed71b9c861515e3f48989ea6dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getdaft-0.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2a184557894bd6cc22744f7c913aecbfebe87da824208adf110d029c09ced8b5
MD5 240306417ed25e5fd42e931de165b918
BLAKE2b-256 1748abc98c6f8a8625a676917884fc7ef086a425e9cf66b136fe2b9125285ab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getdaft-0.2.2-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09bd7d22598965a1cecc6d45565185c6a7c0a3a4fd2c631a550078ea566bfbde
MD5 84197e5240ad294a19fd476c1eaf8768
BLAKE2b-256 be1c00128825380790622a39545b4ed5ecf44e31f7edc1a815a5bd6cd2a550d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for getdaft-0.2.2-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 26b65191c2f4663a7d3ea5ef076ecd9ac34406e3872b0e0fdaabb0b40d99fac8
MD5 e7f45d313c1408170ef010d1caf390af
BLAKE2b-256 714ae2676cbdba0471bf7531158b3b3198a8c893da874cab2d6d5d18d6d3ef89

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