def get_data_year(year): data2006, data2011, data2016, all_data, common_list = cc_data.extract_all_data( ) if year == 2006: return data2006.loc[:, common_list] elif year == 2011: return data2011.loc[:, common_list] return data2016.loc[:, common_list]
def get_data_year_all(): data2006, data2011, data2016, all_data, common_list = cc_data.extract_all_data( ) all_data['region'] = all_data.index common_list.append('region') return all_data.loc[:, common_list]
def get_data_year_2016(): data2006, data2011, data2016, all_data, common_list = cc_data.extract_all_data( ) return data2016.loc[:, common_list]