A dataframe isn't really meant to be used as a column in another
DataFrame. It may work for a few things, but it's likely to be broken for
others.
On May 8, 2015 4:56 AM, "axsk" <[email protected]> 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?
>