I want to create panel with different dataframes, I try to write a function to return this panel. I use some already written function createNewDf(i) which returns dataFrame from existing data, depending on given numeric value.
def panelCreation():
dp1 = Panel({})
for i in range(1,3):
name = 'X' + str(i)
name = createNewDf(i)
dp1.update(name) # This does not work
return dp1
I can’t find a name of the method to put in place of dp1.update(name)
How about just creating the Panel out of a dict of DataFrame?
So something like: