I am struggling with pandas transformation, that I would expect to be quite easy. I have the following 2D (10 x 6) data frame:
import pandas as pd import nump