I obtained the following DataFrame:
Dis System_num Energy
0 0.9 1 -2.3108
1 0.7 1 11.8735
2 1.2 1 -2.3408
3 2.0 1 -0.3485
4 2.0 2 -0.9379
5 0.7 2 7.4776
6 1.5 2 -2.2877
7 0.9 2 -4.1789
8 2.0 3 -3.6596
9 1.0 3 -18.4582
10 0.9 3 -16.2202
11 0.7 3 16.6290
I want to sort values (ascending) in the Dis column for each number in System_num, I mean:
0 0.7 1 11.8735
1 0.9 1 -2.3108
2 1.2 1 -2.3408
3 2.0 1 -0.3485
4 0.7 2 7.4776
5 0.9 2 -4.1789
6 1.5 2 -2.2877
7 2.0 2 -0.9379
8 0.7 3 16.6290
8 0.9 3 -16.2202
10 1.0 3 -18.4582
11 2.0 3 -3.6596

