I am trying to generate an interpolated raster layer of the Bay Area on ArcGIS Online Notebook using PM2.5 data from EPA AirNow sensors. However, the results seem off. I replicated most of the code from another person who used this method interpolating PurpleAir data. The only problem that I had was when I tried to plot the predicted and real values using sns.lmpot
UFuncTypeError: Cannot cast ufunc ‘svd_n_s’ input from dtype(‘O’) to dtype(‘float64’) with casting rule ‘same_kind’
I would assume the limited number of AirNow sensors was the cause, but when I plugged in another dataset with more data points, I got a similar result. Here is my notebook: https://github.com/Jtin25/Lau-Project/blob/main/AirNow_Test.ipynb
Below is the result I got
enter image description here
This is what that person had using PurpleAir data
enter image description here
Does anyone know what the issues could be?
Justin Tse is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.