human
pandas: how to run a pivot with a multi-index?
assistant
Here is some code to run a pivot with a multi-index `year` and `month` in a pandas data frame

df.pivot_table(values='value', index=['year', 'month'], columns='item')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.