会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
没有显示名称
博客园
首页
新随笔
联系
订阅
管理
2019年11月7日
Pandas Series 对象的loc与iloc区别
摘要: import pandas as pd temp = pd.Series([1,2,3,4,5]) loc用法: temp.loc[0:3] 0 1 1 2 2 3 3 4 # 输出索引为0-3的值(基于索引) temp.loc[-1] 报错 iloc用法: temp.iloc[0:3] 0 1 1
阅读全文
posted @ 2019-11-07 10:30 没有显示名称
阅读(710)
评论(0)
推荐(0)
编辑
公告