We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to convert a row in an imported excel file into an array of DateTime allowing missing values.
DateTime
using ExcelFiles, DataFrames f_labs = "file.xlsx" df = DataFrame(load(filename, "4!C1:X6"),header=false)) datetimearray = convert(Array{Union{Missings.Missing,DateTime}},df[2,:])
MethodError: Cannot `convert` an object of type DataValues.DataValue{Any} to an object of type DateTime
What's the correct way to do this?
The text was updated successfully, but these errors were encountered:
convert
This is a bug somewhere in my stack. The DataFrame you get there should never have a DataValue in it, it should automatically use Missing.
DataFrame
DataValue
Missing
Note that Queryverse in general, and ExcelFiles in particular, are not completely ported to 0.7/1.0.
Sorry, something went wrong.
Ok. I ended up expanding on the wrong issue post then.
I'm sure it won't help you, but for anyone coming up against this needing help in the interim: queryverse/DataValues.jl#47
Sometimes it shows cannot convert Any, would it be useful if it automatically call repr() on these?
repr()
No branches or pull requests
I'm trying to convert a row in an imported excel file into an array of
DateTime
allowing missing values.What's the correct way to do this?
The text was updated successfully, but these errors were encountered: