pydata/pandas — pull request #8822 by artemyk (2014-11-15 01:33:18+00:00)
Title: BUG: Error when creating sparse dataframe with nan column label

Right now the following raises an exception:
```
from pandas import DataFrame, Series
from numpy import nan
nan_colname = DataFrame(Series(1.0,index=[0]),columns=[nan])
nan_colname_sparse = nan_colname.to_sparse()
```

This is because sparse dataframes use a dictionary to store information about columns, with the column label as the key. `nan`'s do not equal themselves and create problems as dictionary keys. This avoids the issue by uses a dataframe to store this information.