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")

Sample Datasets

Ready-to-use sample data is available on GitHub: DATFID sample-datasets repo

Training file: Banking_extended.xlsx

  • 50,400 rows x 14 columns
  • Entities: 50 unique Individual IDs (ind1, ind2, ...)
  • Time: integer periods 1 to 1008 (sequential per entity)
  • Target: Loan Probability
  • Features: Repayment Amount, Credit Score, Unemployment Rate, Inflation Rate, Stable Income, Loan Type: Mortgage, and more

Forecast file: Banking_extended_forecast.xlsx

  • 500 rows x 13 columns (same structure minus the target column)
  • Time: 1009 to 1018 (10 future periods per entity)
  • Schema matches training file except target column is omitted

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.