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

Parsing: read raw csv using config file and two spec files #30

Closed epogrebnyak closed 8 years ago

epogrebnyak commented 8 years ago

At https://github.com/epogrebnyak/rosstat-kep-data/blob/master/src/csv2db.py#L28 changed to_database(csv, spec) to to_database(csv, spec, cfg). Given folder import_csv("../data/ind09/") must read data using _tabcfg.txt and _speccpi.txt, but import is not executed.

epogrebnyak commented 8 years ago

Seems to work now, passes test_import_with_cfg() at csv2db.py. Segment must be fully documented, see changes in data/ind09/spec_cpi.txt via 2c8f7e624b99fbd7547ba255c89fbb164f7025a6