moderndid.core.panel.has_gaps#
- moderndid.core.panel.has_gaps(data: Any, idname: str, tname: str) bool[source]#
Check whether the panel has any implicit missing unit-time pairs.
A lightweight Boolean check that compares the number of observed unit-period pairs against the full cross-product. If this returns
True, callscan_gapsto see which specific pairs are missing, then decide whether to fill them withfill_panel_gapsor drop incomplete units withmake_balanced_panel.- Parameters:
- Returns:
- bool
Trueif there are missing unit-time combinations.
See also
scan_gapsMaterialise the missing unit-time pairs.
fill_panel_gapsInsert null rows for the missing pairs.