diff --git a/create_db.py b/create_db.py index d199a90..9af7bac 100755 --- a/create_db.py +++ b/create_db.py @@ -179,5 +179,16 @@ if __name__ == '__main__': index=[1,2,3,4,5,6,7]) logger.debug(indicators) + ## Create departments capitals + dep_capitals = departments[['CHEFLIEU','DEP']] + dep_capitals.columns = ["CHEFLIEUDEP","DEP"] + departments = departments[["DEP","NCC","LIBELLE","REG"]] + logger.debug(dep_capitals) + + ## Create states capitals + states_capitals = states[['CHEFLIEU','REG']] + states_capitals.columns = ["CHEFLIEUREG","REG"] + departments = departments[["REG","NCC","LIBELLE"]] + logger.debug(states_capitals) sys.exit()