MSSQLTips.com · May 08, 2024
Data Quality Management Issues in Time Series Analysis Resolved with Python
This tutorial examines data quality issues in time-series analysis using Lebanese fuel prices and international crude oil data. With pandas and Matplotlib, it demonstrates how missing observations, extreme values and inconsistent numerical scales can obscure the underlying trends.
The examples discuss forward and backward filling, interpolation and other imputation methods. An interquartile-range rule identifies extreme observations, which are replaced using neighboring values. The tutorial also identifies a scaling inconsistency in fuel prices and corrects the affected observations, demonstrating the importance of investigating anomalies before interpreting visualizations.