摘要: 1、Series 可以直接用Series['索引名']:obj['a'] 也可以使用obj.a loc和iloc同样适用 2、DataFrame 使用DataFrame['列索引名']或者DataFrame.列索引名:frame['a']或frame.a 行索引使用loc:frame.loc['on 阅读全文
posted @ 2019-08-29 10:50 Data_worker 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 1、sort_index() 按索引进行排序,可以指定按行索引还是列索引,默认按行索引排序(axis=0):frame.sort_index(axis=0) 按列索引(axis=1):frame.sort_index(axis=1),可选ascending参数,False为降序,默认为升序。 2、s 阅读全文
posted @ 2019-08-29 09:57 Data_worker 阅读(3271) 评论(0) 推荐(0) 编辑