Say, I was trying to create a 3-d Dataframe, but seems like Dataframes can only be 2-d. Someone suggested I create “Dataframe of Dataframes”, where each entry of a Dataframe is itself a dataframe. I was not sure how to do this. I tried a few different syntaxes, but did not seem to work.
df = DataFrame(DataFrame(rand(4,4), 5)
This syntax will not work. I basically need a dataframe with 5 entries, where each entry is a 4x4 Dataframe.
I would like to index the resulting Dataframe of Dataframes like df[:col_name][:depth_name][n]
I saw this post but this looks like an array of Dataframes as opposed to a Dataframe of Dataframes. Now this might work, but just need to understand how to index it.
Oh I see. So you are saying that the different columns of the outer dataframe are matched to the inner dataframes. That is why a=[df1.a, df2.a]. Let me play around with this. Thanks for your help.