pandas中DataFrame的ix,loc,iloc索引方式的异同
1、loc:
按照标签索引,范围包括start和end
2、iloc:
在位置上进行索引,不包括end
3、ix:
先在index上索引,索引不到就在index的位置上进行索引(如果index非全整数),不包括end
本文共 198 字,大约阅读时间需要 1 分钟。
1、loc:
按照标签索引,范围包括start和end
2、iloc:
在位置上进行索引,不包括end
3、ix:
先在index上索引,索引不到就在index的位置上进行索引(如果index非全整数),不包括end
转载于:https://www.cnblogs.com/myblog1993/p/8735045.html