moderndid.core.panel.scan_gaps#
- moderndid.core.panel.scan_gaps(data: Any, idname: str, tname: str) Any[source]#
Identify missing unit-time combinations.
Returns a DataFrame listing every unit-period pair that is absent from the data. Inspecting these gaps helps you decide whether to drop incomplete units with
make_balanced_panelor fill them with null rows usingfill_panel_gaps. For a quick Boolean check without materialising the gaps, usehas_gaps.- Parameters:
- Returns:
DataFrameRows with
idnameandtnamecolumns for every absent pair, returned in the same format as data.
See also
has_gapsQuick Boolean check for missing pairs.
fill_panel_gapsInsert null rows for missing pairs.