From 8490d85ab6a92addd6c50f09c83612022af603eb Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Mon, 18 Apr 2022 13:55:15 +0200 Subject: [PATCH] Create indicator dataframe --- create_db.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/create_db.py b/create_db.py index 5c4a846..d199a90 100755 --- a/create_db.py +++ b/create_db.py @@ -164,5 +164,20 @@ if __name__ == '__main__': sys.exit(1) statistics = import_statistics_csv(args.source + '/' + args.statistics) logger.debug(statistics) + + # Create missing table : indicators + indicators = pd.DataFrame({'indicateur': [ + 'population', + 'naissances', + 'deces', + 'logements', + 'logements vacants', + 'residences principales', + 'residences secondaires et logements occasionnels' + ], + 'code': ['_POP','NAIS', 'DECES','_LOG', '_LOGVAC', '_RP', '_RSECOCC']}, + index=[1,2,3,4,5,6,7]) + logger.debug(indicators) + sys.exit()