django-etl-sync icon indicating copy to clipboard operation
django-etl-sync copied to clipboard

Create Reader class for tabular data

Open postfalk opened this issue 8 years ago • 2 comments

I am thinking of a Reader class that would be able to parse tabular CSV data, such as

date, height, width, weight
1980-01-01, 34, 33, 93
1981-01-01, 38, 12, 30

into

[
    {"date": "1980-01-01", "measurement": "height", "value": 34},
    {"date": "1980-01-01", "measurement": "width", "value": 33},
    {"date": "1980-01-01", "measurement": "weight", "value": 93},
    {"date": "1981-01-01", "measurement": "height", "value": 38},
    {"date": "1981-01-01", "measurement": "width", "value": 12},
    {"date": "1981-01-01", "measurement": "weight", "value": 30}
]

postfalk avatar Nov 18 '16 21:11 postfalk

I used something similar to this in the navarro and the unimpaired projects.

postfalk avatar Nov 18 '16 21:11 postfalk

This exists in the Navarro project and could be easily merged into the main project. However, defer that for now for a clean 0.3.0 release

postfalk avatar Aug 01 '17 21:08 postfalk