0

I have a problem in dealing with some indexes and columns of pd.DataFrame.I have a DataFrame with duplicated indexes and I want to change the duplicated index to columns.

This is Dataframe:

enter image description here

As you see, the columns item have duplicated words,I wanna change the dataframe like this:

enter image description here thank you very much

Sebastian Wozny
  • 16,943
  • 7
  • 52
  • 69
Wesley
  • 1
  • 1
    Welcome on SO, please read [how-to-make-good-reproducible-pandas-examples](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) – Brown Bear Sep 04 '17 at 13:48
  • You got my attention with >>>Dadaframe in the title. Welcome to SO, I tried to fix your question as best as possible. Good luck. – Sebastian Wozny Sep 04 '17 at 16:01
  • Thank you. I really hope you can help me solve this problem. – Wesley Sep 05 '17 at 00:59

0 Answers0