getdaft (Superseded by Daft)

0.5.0 · renamed · verified Thu Apr 16

The `getdaft` package served as an initial entry point for the Daft distributed dataframe library. As of its `0.5.0` version, it acts primarily as a wrapper that installs an older, specific version of the `daft` package (currently `daft==0.5.0`). Users should directly install and use the actively developed `daft` library instead, as `getdaft` is no longer maintained.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates usage with the actively developed `daft` library, which is the recommended approach. While `getdaft` installs an older version of `daft`, direct installation of `daft` ensures you are using the latest features and bug fixes. The imports are from the `daft` package namespace.

import daft
import pandas as pd

# IMPORTANT: Use 'pip install daft' directly.
# 'getdaft' installs an old version of 'daft' and should not be used.

# Create a sample Pandas DataFrame
pd_df = pd.DataFrame({
    "name": ["Alice", "Bob", "Charlie"],
    "age": [25, 30, 35]
})

# Convert to Daft DataFrame
daft_df = daft.from_pandas(pd_df)

# Perform a simple operation
result_df = daft_df.select(
dafa_df["name"],
    daft_df["age"] + 1  # Increment age
)

# Collect the result to a Pandas DataFrame for display
print("Resulting Daft DataFrame (collected to Pandas):")
print(result_df.collect().to_pandas())

view raw JSON →