csv is really only meant for simple two dimensional data. A DataFrame 
inside a DataFrame is more complex than what the csv reader know how to 
deal with. If you want to store something like that you will have to use 
some other file format, like JLD.

On Friday, May 8, 2015 at 11:56:05 AM UTC+3, axsk wrote:
>
> I need to write and then read a DataFrame which consists of other 
> DataFrames to a file. 
>
> df=DataFrame(d=DataFrame(x=[1:5]))
> gives the desired DataFrame, but
> writetable("df.csv",df)
> readtable("df.csv")
> returns:
> 1x1 DataFrames.DataFrame
> | Row | d                                                                 
>                                       |
>
> |-----|---------------------------------------------------------------------------------------------------------|
> | 1   | "5x1 DataFrames.DataFrame\n| Row | x |\n|-----|---|\n| 1   | 1 
> |\n| 2   | 2 |\n| 3   | 3 |\n| 4   | 4 |\n| 5   | 5 |" |
>
> Thus the interiour DataFrame gets stored as string in the file.
> Is there anyway to properly read the inner DataFrame?
>

Reply via email to