title: How to transfer multiple rows into columns in panda data frame?
body: <p>I have a data frame as follows:</p>
  <pre><code>  mydata_frame:
                   IDs   days                f1      f2      f3  ...  fn
                   Id1   day1                5       6       21  ...  5
                   Id1   delta_day0&amp;day1     0       0       0   ...  0                     
                   Id1   day2                21      1       4   ...  2
                   Id1   delta_day1&amp;day2     16      5       17  ...  3
                   Id1   day3                30      2       5   ...  2
                   Id1   delta_day2&amp;day3     9       1       1   ...   0
                   ...     ...        ..      ..      ..  ... ...
                   Id2   day1                8       9       10  ...  2
                   Id2   delta_day0&amp;day1     0       0       0   ...  0                     
                   Id2   day2                12      10      7   ...  6
                   Id2   delta_day1&amp;day2     4       1       3  ...   4
                   Id2   day3                22      25      3   ...  1
                   Id2   delta_day2&amp;day3     10       15     4   ...  5
  </code></pre>
  <p>I would like to transfer the value of all the rows which includes <em>delta</em> into columns. So my desired output should be like this:</p>
  <pre><code>    output:
                   IDs   days         f1    del_f1   f2  del_f2     f3  del_f3  ...  fn  del_fn
                   Id1   day1         5       0       6    0        21   0      ...  5      0
                   Id1   day2         21      16      1    5        4    17     ...  2      3
                   Id1   day3         30      9       2    1        5    1      ...  2      0
                   ...     ...        ..      ..      ..  ... ...
                   Id2   day1         8       0       9    0        10   0      ...  2      0                    
                   Id2   day2         12      4       10   1        7    3      ...  6      4
                   Id2   day3         22      10      25   15       3    4      ...  1      5
  </code></pre>
  <p>Any idea to do this conversion in an efficient way?</p>