part_df_melted=part_df.set_index('time').stack().reset_index()
part_df_melted
time level_1 0
0 0 part_0_hits 100
1 0 part_1_hits 25
2 1 part_0_hits 200
3 1 part_1_hits 50
4 2 part_0_hits 300
5 2 part_1_hits 75
在此之后我无法解决,请帮忙...