First time here? Check out the Help page!
1 | initial version |
It seems that your lines of code trying to reset To
and Ti
variables with .apply(stats.zscore)
is the issue.
To = To.apply(stats.zscore)
Ti = Ti.apply(stats.zscore)
In the lines just above this, you've initialized these variables and set them to the temperature sensor values -- which are floats (numbers). From the error message, you can't use the .apply()
method to floats.
Has this To.apply(stats.zscore)
worked in other projects? From the Python statistics library documentation, it seems like the correct code would be stats.zscore(To)
instead.