linearmodels.panel.data.PanelData.count

PanelData.count(group='entity')[source]

Count number of observations by entity or time

Parameters:
group{“entity”, “time”}

Group to count

Returns:
DataFrame

Counts according to type. Either (entity by var) or (time by var)

Return type:

DataFrame