Take that Series and unstack it, filling the empty combinations with 0
pandas · from MultiIndex, stack and unstack
MultiIndex.unstack().stack().xs()swaplevelget_level_valuesPutting the kettle on…
Starting up…
Exercise 2
Take that Series and unstack it, filling the empty combinations with 0.
your answer
stuck? the lesson behind it
MultiIndex, stack and unstack
An index whose labels are tuples — and two methods for moving levels sideways.