From f77c0f787a14725c3090da5a49b3d312167713a0 Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Mon, 28 Oct 2024 21:59:41 +0100 Subject: [PATCH] fix #465 onground, alert and spi are now already bool with trino/sqlalchemy --- src/traffic/data/adsb/opensky.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/traffic/data/adsb/opensky.py b/src/traffic/data/adsb/opensky.py index 3c0d2a9d..87ceb03a 100644 --- a/src/traffic/data/adsb/opensky.py +++ b/src/traffic/data/adsb/opensky.py @@ -150,11 +150,6 @@ def format_history( if column_name in df.columns: df[column_name] = df[column_name].astype(float) - if "onground" in df.columns and df.onground.dtype != bool: - df.onground = df.onground == "true" - df.alert = df.alert == "true" - df.spi = df.spi == "true" - # better (to me) formalism about columns df = df.rename( columns={