I have a Dataframe dfa in Pandas containing about 12103 rows with about 10 columns. Now I would build a new Dataframe dfb, exploiting dfa, where each row in dfb should be computed taking into account the first 300 rowsin dfa, for example:
value1= dfa['one'].std()
value2=dfa['one'].max()
obtaining dfb having 40 (12103/300) entries. Basically, the first row of dfb has two columns (e.g., value1, value2) containing values computed as above, the second row contains values computed starting from 301th row of dfa to 600th row.
thanks