def parse_complete_time_diff(datas): new_keys = [ 'day', 'complete_time_diff_0to1m', 'complete_time_diff_1to2m', 'complete_time_diff_2to3m', 'complete_time_diff_3to6m', 'complete_time_diff_6m_up' ] return _parse(datas['data1'], ['x', 'y6', 'y7', 'y8', 'y9', 'y10'], new_keys, "x")
def parse_return_rate_diff(datas): new_keys = [ 'day', 'return_rate_diff_0to1m', 'return_rate_diff_1to2m', 'return_rate_diff_2to3m', 'return_rate_diff_3to6m', 'return_rate_diff_6m_up' ] return _parse(datas['data1'], ['x', 'y1', 'y2', 'y3', 'y4', 'y5'], new_keys, "x")
def parse_volume(datas): return _parse(datas, ['date', 'data1'], ['day', 'volume'])
def parse_borrower_num_rank(datas): new_keys = [ 'day', 'borrower_0to20w', 'borrower_20to100w', 'borrower_100w_up' ] return _parse(datas['data1'], ['x', 'y5', 'y6', 'y7'], new_keys, "x")
def parse_return_rate(datas): return _parse(datas, ['date', 'data1'], ['day', 'return_rate'])
def parse_investor_num_rank(datas): new_keys = [ 'day', 'investor_0to1w', 'investor_1to10w', 'investor_10to100w', 'investor_100w_up' ] return _parse(datas['data1'], ['x', 'y1', 'y2', 'y3', 'y4'], new_keys, "x")
def parse_ratio_fifty(datas): new_keys = [ 'day', 'top_fifty_investor_to_receice', 'top_fifty_borrower_to_repay' ] return _parse(datas, ['date', 'data1', 'data2'], new_keys)
def parse_num_borrow_and_mean_borrow_time(datas): new_keys = ['day', 'num_borrow', 'mean_borrow_time'] return _parse(datas, ['date', 'data1', 'data2'], new_keys)
def parse_num_action_borrower_and_investor(datas): new_keys = ['day', 'num_action_borrower', 'num_action_investor'] return _parse(datas, ['date', 'data1', 'data2'], new_keys)
def parse_num_investor_vs_borrower(datas): new_keys = ['day', 'num_investor', 'num_borrower'] return _parse(datas, ['date', 'data1', 'data2'], new_keys)
def parse_borrow_time_mean_platform_vs_industry(datas): new_keys = [ 'day', 'borrow_time_mean_platform', 'borrow_time_mean_industry' ] return _parse(datas, ['date', 'data1', 'data2'], new_keys, padding=True)
def parse_amount_investor_new_vs_old(datas): new_keys = ['day', 'amount_investor_new', 'amount_investor_old'] return _parse(datas, ['date', 'data1', 'data2'], new_keys)
def parse_mean_amount_investor_vs_borrower(datas): new_keys = ['day', 'mean_amount_investor', 'mean_amount_borrower'] return _parse(datas, ['date', 'data1', 'data2'], new_keys)