See clone code. Essentiallly I am importing pandas and numpy and issuing unstack on a dataframe resulted from functions found on these two libraries and comparing it with the results from using unstack on a history dataframe. As a reference, in my eyes, the arrange or dataframe resulted from pandas/numpy is dimensionally the same as the dataframe resulted from history. So I am not sure why, after unstack, the shifting on the arrangement of colums/indexes on one output differs from the other.

Specifically, I was expecting self.u (unstacked dataframe from pandas/numpy) shifting of its indexes/columns to "look" the same as self.uncz (unstacked dataframe from history/close price). Am I erroneous on seeking a similarity on the output between these two "unstacked" dataframes if they have been created from different mechanisms?

Any insights/comments will be greatly appreciated.

Thanks,