TimeFrame.infill¶
- TimeFrame.infill(infill_method, column_name, observation_interval=None, max_gap_size=None, **kwargs)[source]¶
Apply an infilling method to a column in the TimeFrame to fill in missing data.
- Parameters:
infill_method (
Union
[str
,Type
[InfillMethod
],InfillMethod
]) – The method to use for infillingcolumn_name (
str
) – The column to infillobservation_interval (
tuple
[datetime
,datetime
|None
] |None
) – Optional time interval to limit the check to.max_gap_size (
int
|None
) – The maximum size of consecutive null gaps that should be filled. Any gap larger than this will not be infilled and will remain as null.**kwargs – Parameters specific to the infill method.
- Return type:
Self
- Returns:
A TimeFrame containing the aggregated data.