Skip to content
New issue

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

Cannot convert an object of type DataValues.DataValue{Any} to an object of type DateTime #1478

Closed
IanButterworth opened this issue Aug 11, 2018 · 1 comment

Comments

@IanButterworth
Copy link

I’m stuck with new Julia 0.7/1.0 DataFrames functionality. 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
@nalimilan
Copy link
Member

DataValue entries should never appear in a data frame. That's probably a bug in the Queryverse package you used to import the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants