Closed equivalentideas closed 6 years ago
I did a little bit on this yesterday to convert the float data to the float type. Unfortunately it couldn't automagically coerce the text data to floats as I had hoped, and I couldn't find a way to add instructions, so I went down the path of making new columns, making the conversation and then removing the old columns. My initial attempt didn't work well and wiped out all the data :D. Combination and learning a new library and 35ºC.
I'll push that up, but I don't think I'll be working on it more today.
Here's that initial work I did yesterday https://github.com/equivalentideas/westconnex_M4_East_Air_Quality_Monitoring/tree/convert_column_type_for_floats
It looks like pm2_5_concentration_ug_per_m3
should be stored as an Integer and the remaining eight values should be stored as Floats (will get stored as double precision
by Postgres).
It looks like pm2_5_concentration_ug_per_m3 should be stored as an Integer...
The data published by the NSW government (see #18) isn't an Integer so this should also be a Float. That makes things easy.
So that we can work with and doc calculations on the data.
We'll have to migrate the existing data.