Skip to content

Commit

Permalink
fix #465 onground, alert and spi are now already bool with trino/sqla…
Browse files Browse the repository at this point in the history
…lchemy
  • Loading branch information
xoolive committed Oct 28, 2024
1 parent afae804 commit f77c0f7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/traffic/data/adsb/opensky.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit f77c0f7

Please sign in to comment.