Check an input panel and return it in a canonical order.
Parameters
Name
Type
Description
Default
estimates
pd.DataFrame
Long input panel to check.
required
Returns
Name
Type
Description
pd.DataFrame
A copy sorted by subject, source and known_at, with a fresh index, value and the optional numeric fields as float64, and timestamps at their given resolution.
Raises
Name
Type
Description
PanelError
A required column is absent, a key or timestamp is missing, a column has the wrong type, one subject carries two period ends, or one source revised the same subject twice at the same instant. Every failure is reported, not just the first.