Atleast for a quick solution, remove the 'inplace = True'.
See this other post for reference or Pandas documentation on set_index(). StackOverflowQuestion