Quick Start

Get up and running with DATFID in under 5 minutes.

1. Install the SDK

Terminal
pip install datfid

2. Get Your API Key

You need an API token to use the SDK. Getting one is free and takes about 15 minutes.

Get API Key →

Fill out a short form and the DATFID team will respond within 15 minutes with your personal token. See Get Your API Key for details.

3. Initialize the Client

Python
import pandas as pd
from datfid import DATFIDClient

client = DATFIDClient(token="your_DATFID_token")

4. Fit a Model

Load your panel data and fit an interpretable model. DATFID will return a formula with coefficients that explain the relationships in your data.

Python
df = pd.read_excel("your_data.xlsx")

result = client.fit_model(
    df=df,
    id_col="Product",
    time_col="Time",
    y="Revenue",
    current_features="all",
    filter_by_significance=True
)

5. Generate Forecasts

Load a forecast file that defines which entities and time periods to predict, then run the forecast.

Python
df_forecast = pd.read_excel("your_forecast_data.xlsx")

forecast = client.forecast_model(df_forecast=df_forecast)

Next Steps

Prefer no code? The Free Playground lets you upload data, configure parameters, and run analysis with a visual UI — no SDK installation or API key required.