Có hai cách phân loại có sẵn trong Panda: Theo nhãn Theo giá trị Xem xét ví dụ sau : import pandas as pd import numpy as np unsorted_df=pd.DataFrame(np.random.randn(10,2),index=[1,4,6,2,3,5,9,8,0,7],colu mns=['col2','col1']) print unsorted_df Kết quả : col2 col1 1 -2.063177 0.537527...
Xem thêm