What is the type of data[:, 16]? Also, why are you doing these conversions to Array? A column of a DataFrame is already a vector, so there’s no need to convert?
It also seems slightly unusual to decompose a DataFrame into a bunch of individual vectors like this, you might want to think about just renaming the columns of the DataFrame so that you can then access them by their names (e.g. data.Thermal_Q)
This is data in hours, and I’m going to convert each of its columns into data in days (24 hours), which I say is the only way to facilitate data conversion
But I’d have a look at your csv file - it’s likely that Excel has screwed up the formatting which is preventing CSV.jl from correctly reading the numbers. Open it up in Excel again and set the formatting to “General”, then save and reload with CSV, it should correctly parse the numbers (assuming that you don’t have non-numerical data in the same column)
Depends on how large it is and whether you can make it public or not - you could just upload it on GitHub or some other filesharing service, or if you can’t make it public and it’s not too large I can DM you an email address to send it to
Thanks - the issue you have is that there is one row in your data where missing values are encoded not with an empty cell, but with a single whitespace character. The simplest thing to do is to just use Ctrl+H (find/replace) in Excel to replace " " in your file with "" (i.e. put a single empty character in the top box and nothing in the bottom box). This should make 12 replacements in your file, and if you then do
df = DataFrame(CSV.File("huizong15min.csv"))
you should get all numerical columns (although note that you’ll have Union{Float64, Missing} data type, as there are missing values now, you can use dropmissing!(df) to get rid of those)
The problem is in row 17,702 (timestamp 43648.38542), where almost all of your data is missing. Just manually delete the content of the empty cells (or the whole row if you would drop it afterwards anyway)