from [the SO question](http://stackoverflow.com/questions/18082398/pandas-convert-upper-triangular-dataframe-by-shifting-rows-to-the-left)