From 06969cc4f401474d857736920e02f077d382d9a0 Mon Sep 17 00:00:00 2001 From: Xavier Hoenner Date: Tue, 1 Oct 2024 11:58:05 +1000 Subject: [PATCH] Refine PR --- AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/ardc_sofar_nrt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/ardc_sofar_nrt.py b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/ardc_sofar_nrt.py index 3a262409..82de7be6 100755 --- a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/ardc_sofar_nrt.py +++ b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/ardc_sofar_nrt.py @@ -67,7 +67,7 @@ def process_wave_source_id(source_id, incoming_path=None): return if data is not None: - data = data[data['latitude'].notnull()] + data = data.dropna(subset = ['latitude', 'longitude'], how = 'all') # Remove rows associated with NAs for lat/long columns template_dirpath = config.conf_dirpath process_wave_dataframe(data, source_id, template_dirpath, OUTPUT_PATH, incoming_path)