0

Data

ID  Q1  Q2  Q3
AA  1   2   4
BB  5   5   5
CC  6   7   7

Desired

ID  Q1  Q2  Q3
BB  5   5   5
CC  6   7   7
AA  1   2   4

Doing

df = pd.DataFrame(df, index = ["BB","CC","AA"])

This is simply adding the row name, I wish to rea arrange row order based on name. Any suggestion is appreciated.

Ynjxsjmh
  • 28,441
  • 6
  • 34
  • 52
Lynn
  • 4,292
  • 5
  • 21
  • 44

0 Answers0