Closed tritemio closed 8 years ago
I'll not include this option in pybroom for now. This is easy enough in pandas and user needing it will know how to build the index.
I will only add an example in the notebooks showing how turn categorical columns into a MultiIndex.
If the categorical axis are ('dataset'
, 'loss'
) the multi-index version can be created with:
dg.set_index(['dataset', 'loss']).sort_index()
Add option to put the categorical columns in the DataFrame index (or MultiIndex).
In this way stack and unstack operations will work naturally.