One - One Code All

Blog Content

python中pandas索引数据ix ,iloc ,loc 的区别

Python 统计学-科学计算   2011-01-02 10:05:05

loc——通过行标签索引行数据
iloc——通过行号索引行数据
ix——通过行标签或者行号索引行数据(基于loc和iloc 的混合)
同理,索引列数据也是如此!


上一篇:pandas根据列的值选取所有行isin
下一篇:pandas中关于set_index和reset_index的用法

The minute you think of giving up, think of the reason why you held on so long.