logo
Loading...

請問sort()、sort_values() 和 sort_index的差別在哪裡呢? - Cupoy

想請問sort()、sort_values() 和 sort_index的差別在哪裡呢?為什麼這題的...

ml100-2,ml100-2-d10

請問sort()、sort_values() 和 sort_index的差別在哪裡呢?

2019/10/17 下午 05:05
機器學習共學討論版
蘇佳琳
觀看數:12
回答數:1
收藏數:1
ml100-2
ml100-2-d10

想請問sort()、sort_values() 和 sort_index的差別在哪裡呢?

為什麼這題的排序不能使用sort() ?

回答列表

  • 2019/10/17 下午 10:31
    張維元 (WeiYuan)
    贊同數:1
    不贊同數:0
    留言數:0

    sort_values 是依照數值排序,sort_index 是依照 index 排序。sort 是用於一般的容器,像是  list。