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
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.