mirror of
https://github.com/PlaneQuery/OpenAirframes.git
synced 2026-09-22 22:00:47 +02:00
NaN to empty string
This commit is contained in:
@@ -44,6 +44,10 @@ def convert_faa_master_txt_to_df(zip_path: Path, date: str):
|
|||||||
reg_idx = cols.index("registration_number")
|
reg_idx = cols.index("registration_number")
|
||||||
cols.insert(reg_idx + 1, "planequery_airframe_id")
|
cols.insert(reg_idx + 1, "planequery_airframe_id")
|
||||||
df = df[cols]
|
df = df[cols]
|
||||||
|
|
||||||
|
# Convert all NaN to empty strings
|
||||||
|
df = df.fillna("")
|
||||||
|
|
||||||
return df
|
return df
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user