etna.analysis.plot_imputation#
- plot_imputation(ts: TSDataset, imputer: TimeSeriesImputerTransform, segments: List[str] | None = None, columns_num: int = 2, figsize: Tuple[int, int] = (10, 5), start: Timestamp | int | str | None = None, end: Timestamp | int | str | None = None)[source]#
- Plot the result of imputation by a given imputer. - Parameters:
- ts (TSDataset) – TSDataset with timeseries data 
- imputer (TimeSeriesImputerTransform) – transform to make imputation of NaNs 
- columns_num (int) – number of columns in subplots 
- figsize (Tuple[int, int]) – size of the figure per subplot with one segment in inches 
- start (Timestamp | int | str | None) – start timestamp for plot 
 
- Raises:
- ValueError: – Incorrect type of - startor- endis used according to- ts.freq.