A:
From the error in the log, it appears that the DataFrame already has an index. Then index.rename is called to add a new index but the dataframe is already in this state. You can work around this problem by reindexing the dataframe:
In [26]: df
Out[26]: be359ba680
Related links:
Комментарии