示例#1
0
def build_survey_psl():
    year = 2006
    h5_name = '../survey_psl.h5'
    dfname = 'survey_' + str(year)
    os.path.dirname(DATA_DIR)
    PSL_DIR = os.path.join(os.path.dirname(DATA_DIR), 'PSL')
    csv_name = os.path.join(PSL_DIR, "psl_" + str(year) + ".csv")
    print("Using " + csv_name + " to build " + h5_name)
    csv2hdf5(csv_name, h5_name, dfname)
def build_survey_psl():
    year = 2006
    h5_name = '../survey_psl.h5'
    dfname = 'survey_' + str(year)
    os.path.dirname(DATA_DIR)
    PSL_DIR = os.path.join(os.path.dirname(DATA_DIR),'PSL')
    csv_name = os.path.join(PSL_DIR,"psl_"+ str(year) + ".csv")
    print("Using " + csv_name + " to build " + h5_name)
    csv2hdf5(csv_name, h5_name, dfname)
示例#3
0
def build_survey(year, option='frame'):
    h5_name = '../survey.h5'
    dfname = 'survey_' + str(year)
    csv_name = get_csv_file_name(year)
    print("Using " + csv_name + " to build " + h5_name)
    csv2hdf5(csv_name, h5_name, dfname, option=option)
def build_survey(year, option='frame'):
    h5_name = '../survey.h5'
    dfname = 'survey_' + str(year)
    csv_name = get_csv_file_name(year)
    print("Using " + csv_name + " to build " + h5_name)
    csv2hdf5(csv_name, h5_name, dfname, option=option)