mdsi-dsp-at2 / eTe-analysis

0 stars 5 forks source link

Create a data reader module/class (data_reader) to streamline the data ingestion process #29

Closed isampe closed 4 years ago

isampe commented 4 years ago

How to use the module:

import os
import sys
sys.path.append(os.path.abspath('..'))
from commonLib.data_reader import *

reader = SuicideDataReader()
suiciderate = reader.read_data(SuicideRawData.SUICIDE_RATES, tidy = True)
socioeconomic = reader.read_data(SuicideRawData.SOCIOECONOMIC)

note: only suicide rates and age-standardized that have different format between raw data and tidy data