I grouped my df into different ids:
df = [x for _, x in fulldf.groupby('ids')]
Now I get a list object of different data frames, each has a different size.
I wrote an own function which uses each grouped data frame as an input:
def myfunction(df):
A[1:,0]=df.A
A[0,0]=df.A+df.B
How can I know iterate through the data frames of the list? F.e.:
myfunction(df's of the list)
How can I do that? I hope that was clear enough.
Thanks,
KS
PS: the question relates to question Python: groupwise & recursive computation on pandas dataframe where one can find input & desired output.