Panel Utilities#
The panel module provides diagnostic, validation, and transformation tools for preparing panel data before estimation. All functions accept any Arrow-compatible DataFrame and return the same format.
Diagnostics#
Run a diagnostic battery on panel data. |
|
Structured report returned by |
Validation#
Check whether the panel is balanced. |
|
Check whether the panel has any implicit missing unit-time pairs. |
|
Identify missing unit-time combinations. |
|
Check which columns vary within units over time. |
Transformation#
Drop units not observed in every time period. |
|
Make the panel rectangular by inserting |
|
Keep units observed in at least min_periods time periods. |
|
Remove duplicate unit-time pairs. |
|
Add a |
|
Extract treatment-group timing into a |
|
Add a unique |
|
Pivot a long panel to wide format. |
|
Unpivot wide-format data into a long panel. |