queryverse / queryverse/DataValues.jl
Cannot `convert` an object of type DataValues.DataValue{Any} to an object of type DateTime
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 14
- Forks
- 6
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 2
Description
I'm not sure if this is a core DataValues issue or one with the implementation in ExcelFiles or DataFrames (where I posted the same issue):
https://github.com/queryverse/ExcelFiles.jl/issues/13
https://github.com/JuliaData/DataFrames.jl/issues/1478
(I'll close the inappropriate issues once I figure out where the issue is)
I have dataframe df where column 1 is an array of DataValues.DataValue{Any}.
How can I convert it to DateTime, and allow for missing?
This doesn’t work:
datetimes = convert(Vector{Union{DateTime,Missing}}, df[1])
MethodError: Cannot `convert` an object of type DataValues.DataValue{Any} to an object of type DateTime
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shown convert(Vector{Union{DateTime,Missing}}, df[1]) call and inspect how DataValues.DataValue{Any} conversion is handled. Compare the related ExcelFiles and DataFrames issues linked in the report; done means a documented or tested conversion path that preserves missing values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100