human
set multi index of an existing data frame in pandas
assistant
Here is some code to set multi index on columns 'Company' and 'date' of data frame `df` in pandas.

df.set_index(['Company', 'date'], inplace=True)

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