How can this dataframe, reflecting an offtake for a Material A, be transposed or pivoted og groupedby be transposed or pivoted or grouped by or reshaped into this format instead What would be the most optimized way? The reason for this specific format, is dataframes for a number of materials would then need to be stacked up. And each material would have its own timeseries data. Transpose on its own gives this format, which is not what is needed Continue reading...