From b836d8cefbbcbe8fee9001fdd24250096ed02ff9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 9 Nov 2023 14:13:30 +0000 Subject: [PATCH] add comment about FLS200_SN converted to NaN --- ...tilising the WRA Data Model and the brightwind library.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Plotting the shear profile of the E06 floating lidar data utilising the WRA Data Model and the brightwind library.ipynb b/tools/Plotting the shear profile of the E06 floating lidar data utilising the WRA Data Model and the brightwind library.ipynb index 10c9133..4057f29 100644 --- a/tools/Plotting the shear profile of the E06 floating lidar data utilising the WRA Data Model and the brightwind library.ipynb +++ b/tools/Plotting the shear profile of the E06 floating lidar data utilising the WRA Data Model and the brightwind library.ipynb @@ -728,7 +728,7 @@ "source": [ "Normally loading a csv into the brightwind library would be as simple as `bw.load_csv('filename.csv')`. However, due to poor formatting of the timeseries data file downloaded directly from the above link there are few extra things to do to read this in properly.\n", "1. `engine='python'` is added due to the 3 leading character spaces before the 'NaN' values, Pandas throws an error as it thinks there are multiple data types, strings and numeric in the one column.\n", - "1. Also, due to this we need to force this to a numeric by using `.apply(pd.to_numeric, errors='coerce')`\n", + "1. Also, due to this we need to force this to a numeric by using `.apply(pd.to_numeric, errors='coerce')`. Unfortunately this also converts the column 'FLS200_S/N', which is the buoy's serial number, to be NaN. For this example this is acceptable as the serial number is not used.\n", "1. Finally, the column names for some reason have a leading space which needs to be stripped out using `data.columns.str.strip()`. \n", "\n", "Thanks to Daniel Nuno of Eolos for solving these issues."