Skip to content

Cannot convert from DataValues.DataValue{Any} to DateTime #13

Description

@IanButterworth

I'm trying to convert a row in an imported excel file into an array of DateTime allowing missing values.

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions