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 have a DataFrame with a "Time" column
I CSV.write this DataFrame to a File, then CSV.read it back
DataFrame does not recognize it is a TIme, it reads as a "String"
How to fix it? Thank you
df = DataFrame(thistime=[Time(10,0,0), Time(12,0,0)]) CSV.write(raw"c:\temp\testtime.csv", df) df2 = CSV.read(raw"c:\temp\testtime.csv") |> DataFrame println(eltypes(df2))
DataType[String]
The text was updated successfully, but these errors were encountered:
You can provide the type manually, like:
julia> df2 = CSV.read("testtime.csv", types=[Time]) 2×1 DataFrame │ Row │ thistime │ │ │ Time │ ├─────┼──────────┤ │ 1 │ 10:00:00 │ │ 2 │ 12:00:00 │
But it does look like our auto-detection code isn't picking up the Time type here for you. Thanks for the report!
Time
Sorry, something went wrong.
Fix #526 by making sure we can auto-detect Time types
228051b
fc590cf
No branches or pull requests
I have a DataFrame with a "Time" column
I CSV.write this DataFrame to a File, then CSV.read it back
DataFrame does not recognize it is a TIme, it reads as a "String"
How to fix it? Thank you
DataType[String]
The text was updated successfully, but these errors were encountered: