If not None, apply the key function to the index values before sorting. ... 'b', 'C', 'd']) >>> df.sort_index(key=lambda x: x.str.lower()) a A 1 b 2 C 3 d 4.
確定! 回上一頁