Have you tried

 

df = readxl(DataFrame, "Filename.xlsx", "Sheet1!A1:C4")

 

That would return a DataFrame. Note that there is no readxlsheet that reads 
into a DataFrame (yet).

 

The eventual API design I had in mind is that one can pass as a first argument 
the return type one desires. Right now the only option is DataFrame, otherwise 
it defaults to a DataArray.

 

Cheers,

David 

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Brandon Booth
Sent: Tuesday, May 19, 2015 7:22 PM
To: [email protected]
Subject: [julia-users] Convert DataArray to DataFrame

 

I feel like this should be simple to do, but I can't seem to do it. I'm using 
ExcelReaders and it imports as a DataArray whereas I'd like to have the data as 
a DataFrame. I didn't see anything in the approximately 375 pages of methods 
for convert.

Thanks.

Brandon

Reply via email to