Hi all,
I imported an excel file to XLSX data variable named xf, now Iβm trying to convert one of the worksheets xf[2] into a dataframe.
The worksheet have two columns, one date in the form of 1993-04-30 and the other column is just numbers.
When I try df = DataFrame(xf[2])
I get the error: ArgumentError: no default `Tables.columns` implementation for type: XLSX.Worksheet
xf = XLSX.readxlsx(path)
XLSX.sheetnames(xf)
sh1 = xf["Sheet1"]
@show sh1["A1:B2"]
df = DataFrame(XLSX.readtable(path, "Sheet1")) # note the need for readtable function
# unfortunately, the columns come over as type Any. So....
CSV.write("output.csv", df)
# then
CSV.read("output.csv", DataFrame; normalizenames = true, dateformat = "Y-m-d")