I have this code and I supposed to organize the number in 'Data 1' column alphabetically from [3,4,1] to [1,3,4] without changing the data. How do I do that?
import numpy as np
import pandas as pd
# TODO:
data = pd.DataFrame({"Data 1": [3,4,1]})
data
Output:
Data 1
0 3
1 4
2 1
The output I wanted:
Data 1
0 1
1 3
2 4