Is there an easy way to group columns in a Pandas DataFrame?
问题 I am trying to use Pandas to represent motion-capture data, which has T measurements of the (x, y, z) locations of each of N markers. For example, with T=3 and N=4, the raw CSV data looks like: T,Ax,Ay,Az,Bx,By,Bz,Cx,Cy,Cz,Dx,Dy,Dz 0,1,2,1,3,2,1,4,2,1,5,2,1 1,8,2,3,3,2,9,9,1,3,4,9,1 2,4,5,7,7,7,1,8,3,6,9,2,3 This is really simple to load into a DataFrame, and I've learned a few tricks that are easy (converting marker data to z-scores, or computing velocities, for example). One thing I'd like