human
Working with set_index in Pandas DataFrame
assistant
Here is some code to set columns `['race_date', 'track_code', 'race_number']` as indexes in dataframe `rdata`

rdata.set_index(['race_date', 'track_code', 'race_number'])

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