get_dates_info(historical_data)
Returns Latest date: Max date in the historical data Start date(for extraction): 1 year prior to the latest date
Source code in wt_ml/dataset/economics/fred_extraction_utils.py
47 48 49 50 51 52 53 54 |
|
impute_missing_data(df)
Impute missing values at a state and signal level by the mean
Source code in wt_ml/dataset/economics/fred_extraction_utils.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
trim_historical_data(historical_data, start_date)
Remove the last 1 year data in the historical data
Source code in wt_ml/dataset/economics/fred_extraction_utils.py
57 58 59 60 |
|