epogrebnyak / data-rosstat-kep

Time series dataset of Rosstat Short-term Economic Indicators ("KEP") publication
http://www.gks.ru/wps/wcm/connect/rosstat_main/rosstat/ru/statistics/publications/catalog/doc_1140080765391
6 stars 6 forks source link

Streams of work (old comement) #125

Closed epogrebnyak closed 8 years ago

epogrebnyak commented 8 years ago

13:04 07.12.2015

(G0) maintainable/readable code + data structure

(G1) enhance graphs

(G2) make full coverage of KEP publication + brush dataset

(G3) make friendly API

# + also tests as samples

get_var_list(freq=None)
"""Returns a list of (a)nnual, (q)tr and (m)onthly variables in database."""
{"a": [...], "q": [...], "m": [...], "all": [...]}

get_df(var_list, freq):
"""Returns dataframe with *var_list* variables"""

get_ts(var_name, freq):
"""Returns time series base on *var_name*"""

a_list = get_var_list(freq="a")
q_list = get_var_list(freq="q")
m_list = get_var_list(freq="m")

# dfa, dfq and dfm are complete contents of the database
dfa = get_df(a_list)
dfq = get_df(q_list)
dfm = get_df(m_list)

(G4) clean data export

(G5) data transformation (seasonality/detrending wth HP, index time series)