PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Panel Data Python Packages

Python packages with the GitHub topic panel-data. Sorted by relevance, with stars and monthly downloads.
bashtage
linearmodels

Additional linear models including instrumental variable and panel data models that are missing from statsmodels.

420K 1K 195
igerber
diff-diff

Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.

46K 278 40
brycewang-stanford
statspai

StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.

7K 266 52
bernardodionisi
differences

difference-in-differences in Python

5K 112 27
ksecology
fixedeffectmodel

Fixedeffectmodel: panel data modeling in Python

2K 77 22
gorgeousfish
diddesign

Double Difference-in-Differences for Python — GMM-optimal combination of multiple pre-treatment periods with bootstrap inference, diagnostic tools, and publication-ready plotting (Egami & Yamauchi, 2023).

2K 0 0
4Freye
panelsplit

A tool for performing cross-validation with panel data

1K 21 2
michadenheijer
groupedpaneldatamodels

A Python package that implements the most commonly used Grouped Panel Data Models

1K 0 0
gorgeousfish
pretest-did

Python implementation of the conditional extrapolation pre-test for difference-in-differences (Mikhaeil & Harshaw, 2026). Returns pass/fail decision, conditional confidence interval, and diagnostic scalars as a typed result object.

810 0 0
gorgeousfish
xtbreak

Bai–Perron structural break detection and estimation for time series and panel data. Tests for breaks, estimates break dates with confidence intervals, and selects break counts via sequential testing or information criteria.

744 0 0
gorgeousfish
equitrends

Equivalence tests for pre-trends in Difference-in-Differences estimation. Implements max, mean, and RMS tests from Dette & Schumann (2024, JBES).

698 0 0
gmarinichev
did-imputation

Borusyak-Jaravel-Spiess (2024) difference-in-differences imputation estimator with event-study plots for Python.

532 0 0
LukaVuli
fin-econ-scaling-laws

Package for estimating how forecasting performance scales with model size and training compute. It can be used to apply scaling-law methods to economics, finance, panel, and time-series data.

447 0 0
aaivu
panelformer

Transformer-based model for accurate and scalable panel time series forecasting. Builds on Temporal Fusion Transformer with innovations like segment-wise attention, multi-scale decomposition, and cross-entity attention.

390 0 0
random-walks
factor-factory

Domain-agnostic factor-model + analysis-pipeline framework with Protocol-based pluggable engines (DiD, SDID, SCM, RDD, survival, event study, mediation, het-TE, …) and first-class jellycell tearsheet integration.

357 1 0
actcwlf
panelexpr

A simple panel data evaluator

217 0 0
uea-machine-learning
sktime-dl

DEPRECATED, now in sktime - companion package for deep learning based on TensorFlow

205 596 77
jiboncom
pyinteractivefixedeffects

Python implementation of the Interactive Fixed Effects Estimator for panel data presented in Bai (2009).

132 4 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery