unstack with nan in the index
Merge pull request #9061 from behzadnouri/nan-pivot

pivot & unstack with nan in the index
use labels to identify duplicates in multi-index