Hi! I’m reading csv file and puttining it into DataFrames. I can’t cope with changing the time column from “2019-11-18T13:09:31Z” format to “2019-11-18”. Can someone help me ?
I have code
function read_data('query.csv')
cap_file = readlines(datadir('query.csv'))
df = DataFrame(data(cap_file[end]))
df = @transform(df, time = string.(chop.(:time)))
@transform(df, time = Date.(:time))
end
but it gives me “syntax: character literal contains multiple characters”
D = DataFrame!(CSV.File(raw"C:\Data.csv",
datarow=3, # Data starts on the third row
dateformat=dateformat"y-m-dTH:M:SZ",
delim=',',
header=["Timestamp","Temperature","Diagnostic","Count"],
types=[DateTime,Float64,String,Int64]))