From 85fa0f2bdb175649a5785fc9545d1bb9736fe0d2 Mon Sep 17 00:00:00 2001 From: han16nah Date: Sat, 4 May 2024 17:36:53 +0200 Subject: [PATCH] add airports class --- co2calculator/data_handlers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/co2calculator/data_handlers.py b/co2calculator/data_handlers.py index a5bb460..bdc224b 100644 --- a/co2calculator/data_handlers.py +++ b/co2calculator/data_handlers.py @@ -46,7 +46,11 @@ def get(self, parameters: dict): class Airports: - pass + def __init__(self): + """Init""" + self.airports = pd.read_csv( + "https://davidmegginson.github.io/ourairports-data/airports.csv" + ) class DetourFactors: