Pandas:排名与排序

import numpy as np import pandas as pd from pandas import Series,DataFrame 1、排序 1.按索引排序 Seriespython s = Series([3,1,7,0],index=['c','d','a','b']) s.sort_index() a 7 b 0 c 3 d 1 dtype: int
相关文章
相关标签/搜索