Input DataFrame: rowsCount = 7, columnsCount = 5

Step 1: Pivot

Output DataRow